how can i check if my bot has registered its commands in a guild?
im looking for a way to synchronise my bot to all guilds its present in - after a potential situation where someone add it to their guild while its offline
5 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 OPshould i just refresh commands in every guild on boot?
i know i could, but im looking for the optimal solution
You're looking for "global commands"
they are automatically usable in every server your bot is in, and are usable in DMs (the latter of which can be disabled on a per-command basis)
oh
right
i completely forgot about that
thanks!