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
- 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 OPclient.application.commands.set([])
still the commands are there
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
and i tried it with a command group command
Are you sure they're not guild commands
Nope there global I made the bot firstly with python then switched to djs
And I can't remove them
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([])