duplicated commands

i did try to fix it but still it here is the code
11 Replies
d.js toolkit
d.js toolkit7mo ago
- 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 OP
igzh
igzhOP7mo ago
duck
duck7mo ago
you appear to still have code for registering both guild commands and global commands your comments seem to indicate that you know this
igzh
igzhOP7mo ago
even if i reset them await rest.put( Routes.applicationCommands(clientId), { body: [] } // Resetting global commands );
duck
duck7mo ago
yes I understand that, but if you continue to register the same commands as both guild and global commands, you'd just be undoing this reset
igzh
igzhOP7mo ago
so should i register 1 only
duck
duck7mo ago
if you don't want global commands, don't register them, yes
igzh
igzhOP7mo ago
kk
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
igzh
igzhOP7mo ago
thanks for helping
Want results from more Discord servers?
Add your server