Delete all Slash Commands
I'm trying to figure out if theres a way, as quite literally. they dont sync
6 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 OPAnyone have an idea?
If 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: [] })
I just throw that in my deploy-commands?
ReferenceError: Cannot access 'commands' before initialization
:Bruh:
that's weird, I swear I put them.
Yeah, i did.
I just made this.
I think it worked.
lemme check
yeah nevermind
![No description](https://cdn.answeroverflow.com/1259088171824582777/image.png)
I already figured it out.
I don't think I needed a rude ass opinion, but thank you.
Considering I haven't touched js in 2+ years, I don't think I needed you to go ahead and disrespect and act like youre entitled.
Especially, when I'm asking for assistance on a simple issue.
Alright, now you're really sound off. You're claiming I "lied" to you.
When I have no clue who you are, nor do I care to.
I'm asking for a simple answer.
But thank you for an opinion I did not request, I do hope you recieve some type of help for your attitude.
Have a good one.