Slash commands being duplicated in global registering
Hey, When I try to register my slash commands globally, they are getting duplicated.
Here is the code I am using:
I am using discord.js v13.8.0 and node.js v16
2 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
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: [] })