How do delete all slashcommands

So i have used the same token from one of my bots which has a slashcommand group and i wanted delete the old commands can anybody help me?
8 Replies
d.js toolkit
d.js toolkit3w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
A
A3w ago
client.application.commands.set([])
ryzm
ryzm3w ago
still the commands are there
No description
DrBurgerMaster
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
ryzm
ryzm3w ago
DiscordAPIError[10063]: Unknown application command
at handleErrors (/root/Blaze/node_modules/@discordjs/rest/dist/index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/Blaze/node_modules/@discordjs/rest/dist/index.js:1133:23)
at async SequentialHandler.queueRequest (/root/Blaze/node_modules/@discordjs/rest/dist/index.js:963:14)
at async _REST.request (/root/Blaze/node_modules/@discordjs/rest/dist/index.js:1278:22) {
requestBody: { files: undefined, json: undefined },
rawError: { message: 'Unknown application command', code: 10063 },
code: 10063,
status: 404,
method: 'DELETE',
url: 'https://discord.com/api/v10/applications/1166725669988868166/commands/1245779822324744200'
}
DiscordAPIError[10063]: Unknown application command
at handleErrors (/root/Blaze/node_modules/@discordjs/rest/dist/index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/Blaze/node_modules/@discordjs/rest/dist/index.js:1133:23)
at async SequentialHandler.queueRequest (/root/Blaze/node_modules/@discordjs/rest/dist/index.js:963:14)
at async _REST.request (/root/Blaze/node_modules/@discordjs/rest/dist/index.js:1278:22) {
requestBody: { files: undefined, json: undefined },
rawError: { message: 'Unknown application command', code: 10063 },
code: 10063,
status: 404,
method: 'DELETE',
url: 'https://discord.com/api/v10/applications/1166725669988868166/commands/1245779822324744200'
}
and i tried it with a command group command
Mark
Mark3w ago
Are you sure they're not guild commands
ryzm
ryzm3w ago
Nope there global I made the bot firstly with python then switched to djs And I can't remove them
Amgelo
Amgelo3w ago
can you use the command on the bot's dms? why not just try deleting it as if it was a guild command just in case client.guilds.cache.get(guildId).commands.set([])