Commands not refreshing after being correctly deployed
Good evening. I'm developing a discord.js bot using typescript. I am having trouble using my deployed commands.
To clarify, my bot integration successfully have the commands that I want to deploy but they are not visible within the channel I'm testing on.
Here's my
Commands.ts
file to register the command and deploy them (public)
I find out that re-inviting the bot fixed the problem but I don't think this is a normal behaviour, since a public bot should have its command refreshed automatically in any server it's in, right ?
Thanks for your help5 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!restart your discord client?
This actually worked but is this the expected behaviour ?
Should anyone restart its discord client to get a bot commands updates ?
discord client is just bad at syncing them
Thanks for the clarification 🙏