Not loading ban command
With the basic command ping it works but with ban.js it doesn't.
ping.js that works:
ban.js that doens't:
But if i put the same configuration as i have done with the ping command it works, but adding the .addUserOption it doesn't appear when i write /
11 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 OPhow are you deploying your commands
nodemon
not quite what i meant
what code is responsible for loading your commands
you mean about the rest.put
?
yes
first of all, this script is meant to be run separately, you should not have a client in there and run it at every start
second, did you refresh your discord client
and are you sure the command is actually being passed inthe body
It should be passed as ping command does
and have you confirmed it
If i create any file with the same configuration as the ping one it works fine, same for the ban command, but the ban command appears only if i delete the .addUserOption
Resolved ✅