🌐Global slashcommand

Delete a global slashcommand by name

const {
   deleteSlashcommand,
   Slash,
} = require('@mxgnus/slashcommands.js');
new Slash(bot /* your discord.js client */); // initialize the slash command

deleteSlashcommand({
   name: 'command name',
});

Delete a global slashcommand by id

const {
   deleteSlashcommand,
   Slash,
} = require('@mxgnus/slashcommands.js');
new Slash(bot /* your discord.js client */); // initialize the slash command

deleteSlashcommand({
   id: 'command id',
});

Delete all global slashcommands

const {
   deleteAllSlashcommands,
   Slash,
} = require('@mxgnus/slashcommands.js');
new Slash(bot /* your discord.js client */); // initialize the slash command

deleteAllSlashcommands()

Last updated