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 once4 Replies
- 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 OPThis is the command deployer, so in your opinion should i keep both? deployer and files declaration?
can you show your deployer? if it's exactly like in the guide it should be fine