Is there a way to check if the bot has the applications.commands scope in a given guild?

As title says, is there any way to check this? Either through DiscordJS itself, or I'd settle for settings on Discord or on the My Applications menu. More specifically, I've registered global slash commands but they do not appear in the guilds in which the bot is. I've tried weeding out any other causes but everything else seems to be correct, so I'm leaning towards the commands not showing as a result of this missing scope.
4 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
darp
darp9mo ago
applications.commands is given automatically
Drithyl
DrithylOP9mo ago
This particular bot was invited to the guild a long time ago, in August 2020, so I'm not sure if this would have applied? Looking at other Integrations in the guild, I see that two other more recent bots have a slash symbol that mine does not:
No description
Drithyl
DrithylOP9mo ago
When I click on Manage it does actually list all the commands I've deployed globally, however. They just do not show up when you start typing / in the relevant channels. Weirdly enough, reinviting the bot (even without removing it from the guild first) seems to have refreshed things and has added that slash icon, and now the global commands are showing.
Want results from more Discord servers?
Add your server