Updating commands once the bot is started.
I've looked at various posts but no one seems to help me, when I start my bot with the command “node .” my bot goes online correctly however it doesn't update the commands by adding the ones I created, staying on the old ones, even if I go to “Manage interaction” it doesn't change and they are still the same, I don't get any errors in my code.
18 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!If you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn moreUnknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Yes but nothing.
wdym nothing
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
also did you refresh your discord client
Yes.
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
that code does not register your commands
you were told how
But why do the other commands work? Always slash.
you deployed them at some point
Do you mean this?
yes
also the latest api version is 10
and that code should not need a client
it should be ran separately whenever you change your commands
So how should I solve the problem?
by running the file
but removing your client logic from it