duplicated commands

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