🌐Global slashcommand with options

// create a global slashcommand with options
const {
   Slashcommand,
   Slash,
   SlashcommandOption,
} = require('@mxgnus/slashcommands.js');

const nameOption = new SlashcommandOption()
   .setName('name')
   .setDescription('Name')
   .setType('STRING')
   .setRequired(true);

new Slashcommand()
   .setName('name')
   .setDescription('Enter your name')
   .addOption(nameOption)
   .register();

Last updated