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
d.js toolkit
d.js toolkit9mo ago
- 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 OP
Lipton
LiptonOP9mo ago
should i just refresh commands in every guild on boot? i know i could, but im looking for the optimal solution
Squid
Squid9mo ago
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)
d.js docs
d.js docs9mo ago
:guide: Creating Your Bot: Registering slash commands - Command registration > Global commands read more
Lipton
LiptonOP9mo ago
oh right i completely forgot about that thanks!
Want results from more Discord servers?
Add your server