Slash Command registration in files and in deploy-commands: double declaration

Hello, I asked for help a lot of times here and every times I sent my code, the member who was assisting me asked me "Why do you declare commands twice? in the deploy-commands.js file and in the command file" My only answer was because it was listed in the guide and if i declare it only one it doesnt work If someone can, help me to declare commands only once
4 Replies
d.js toolkit
d.js toolkit5mo 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
d.js docs
d.js docs5mo ago
:guide: Creating Your Bot: Registering slash commands The command deployment script, to register your slash commands with Discord so they appear in the interface. read more
Robelo06
Robelo06OP5mo ago
This is the command deployer, so in your opinion should i keep both? deployer and files declaration?
Amgelo
Amgelo5mo ago
can you show your deployer? if it's exactly like in the guide it should be fine
Want results from more Discord servers?
Add your server