How to delete Application Slash Commands
That's is quick but i accidentally put two commands that do the same (due the other one not showing up) now all tutorials i can find about deleting slash commands is outdated (or just don't work idk), how to do delete slash commands
24 Replies
- 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 OPIf you have duplicate commands on your server, you registered both global and guild commands.
You can remove the duplicates by resetting either the global or guild commands
- Resetting global commands:
rest.put(Routes.applicationCommands(clientId), { body: [] })
- Resetting guild commands: rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: [] })
It didn't work
You haven't defined
rest
How i do that?
Like
Follow that part, and instead of passing commands, pass an empty array (or if you already have the deploy commands file, just modify it and run it)
Like here
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Did i forget to add something?
Looks fine
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Ah, true
I didn't put " so how do i fix it?
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Ok
By, literally putting " "
Still rest not defined
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Ok
Is bot token right?
Yes
I put in where? Just to don't get anything worng
Ok
It worked, thanks!
👍