#Duplicated Application Commands

15 messages · Page 1 of 1 (latest)

deep vigilBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
pliant isleBOT
#

Tag suggestion for @upbeat dew:
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: [] })
hollow heron
#

pass in an empty array

#

also tag your post properly as you use v13

hollow heron
#

your code is v13

#

also why do you have 2 interactionCreate listeners

pliant isleBOT
hollow heron
#

please dont ever use chatgpt

#

because thats what you'll get

#

outdated code and incorrect code

twin silo
hollow heron
twin silo
# hollow heron No. It uses outdated data

Yes for djs. The latest there is v13. For the others, not all are outdated. Sometimes things stayed that way till now. That's why you need to recheck what ChatGPT tells you. It doesn't mean you can't use it entirely.

hollow heron
#

I'm talking about using it for djs

twin silo