Duplicated Application Commands
A few commands are duplicated even tho I've only put them once in the code.
22 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!Tag suggestion for @_xheg:
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: [] })
do i put it in the beginning?
how do i even set it up
pass in an empty array
also tag your post properly as you use v13
i'm using v14
![](https://cdn.answeroverflow.com/1142539168803725363/image.png)
your code is v13
oh
didn't know
sorry
also why do you have 2 interactionCreate listeners
i used chatgpt for this part 💀
dw
please dont ever use chatgpt
y
because thats what you'll get
ye true