Command Wont Go Away
For some reason my command was listed twice in the command list.
So I deleted the command from my bot, then restarted it.
Now one of them was deleted, but the other is still there.
How can I delete the command?
3 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: [] })
ah yeah i think one was a global command.
but i ran that code, and it seemed to be successful, but the command still appears. does it take a while to disappear?
oh nvm, was using the wrong token
thanks @Mark!