Commands dont load
Whenever I create a new command, I have to remove my bot from the server and add it back. How can I fix this?
19 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!Do you have 'Use Application Command' Permission?
Yes! 🙂
Did you use rest?

Yes!
is there any error? If no, send the code
Basically, there is no error. What happens is: I create a command and restart the bot. The command does not appear in the bot's command list.
have you loaded the commands path correctly? If yes, send the code again
Probably path issues
but they are loaded without errors

Send slash code
slash code? an example?
do you know how to code?
yes. @jö 🌈 and @Question
Command handler ^
Event handler ^
send the content of slash command file
you shouldn't deploy your commands every time your bot starts. Use what jo linked and run that only when you add or edit commands. And reload your discord client to see the new commands appeae