-
Notifications
You must be signed in to change notification settings - Fork 185
Description
Describe the bug.
Everything I describe is based off other people's reports and theoretical guesswork. This may be inaccurate.
Many big bots are in a large number of guilds, and so it makes sense for them to turn off disable_sync. Besides for the obvious, this has another behavior, however.
Instead of erroring out if a guild has the bot without the application.commands scope (which is possible under certain contexts, and happens especially often for bigger bots), having disable_sync will instead simply warn the user - we don't need to sync to the bot so not having application commands isn't needed, but it is a thing to note.
However, in 4.3.1 at least, the bot has been erroring out when seeing a guild without the scope instead of simply warning.
List the steps.
- Have a bot be in a server (at least one) where it doesn't have the
application.commandsscope. - Start a bot with
disable_sync=True.
What you expected.
For interactions.py to warn the user, but not necessarily stop them.
What you saw.
interactions.api.error.LibraryException: An error occurred:
Missing Access, with code '50001' and severity '40'
Could not prepare the client:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/interactions/ext/autosharder/dummy.py", line 47, in _ready
await self._Client__get_all_commands()
File "/usr/local/lib/python3.8/dist-packages/interactions/client/bot.py", line 426, in __get_all_commands
_cmds = await self._http.get_application_commands(
File "/usr/local/lib/python3.8/dist-packages/interactions/api/http/interaction.py", line 45, in get_application_commands
return await self._req.request(
File "/usr/local/lib/python3.8/dist-packages/interactions/api/http/request.py", line 174, in request
raise LibraryException(
interactions.api.error.LibraryException: An error occurred:What version of the library did you use?
stable
Version specification
4.3.1
Code of Conduct
- I agree to follow the contribution requirements.