duplicated commands

i did try to fix it but still it here is the code
11 Replies
d.js toolkit
d.js toolkit9mo 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
igzhOP9mo ago
duck
duck9mo 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
igzhOP9mo ago
even if i reset them await rest.put( Routes.applicationCommands(clientId), { body: [] } // Resetting global commands );
duck
duck9mo 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
igzhOP9mo ago
so should i register 1 only
duck
duck9mo ago
if you don't want global commands, don't register them, yes
igzh
igzhOP9mo ago
kk
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
igzh
igzhOP9mo ago
thanks for helping

Did you find this page helpful?