You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd.scope.extend(self._default_scope)
extends the cmd.scope, but then sets cmd.scope to its return value, which is None.
This overrides the scope, resulting in None being passed as the scope to command in full_data.
This passes None as the guild_id to the ApplicationCommand, which is used in when getting a guild_commands _guild_id
=> KeyError here if _guild_command["name"] not in __check_guild_commands[_guild_id]:
Describe the bug.
When starting the bot with a command that has a scope as a param specified it results in a KeyError:
List the steps.
What you expected.
The command should be correctly registered for the guilds provided in the default_scope and command scope
File client/bot.py, line 517, in __resolve_commands:
cmd.scope.extend(self._default_scope)
extends the cmd.scope, but then sets cmd.scope to its return value, which is None.
This overrides the scope, resulting in None being passed as the scope to command in full_data.
This passes None as the guild_id to the ApplicationCommand, which is used in when getting a guild_commands _guild_id
=> KeyError here
if _guild_command["name"] not in __check_guild_commands[_guild_id]:
replace
with
What you saw.
Instead, I received this traceback error given from my Python terminal:
What version of the library did you use?
stable
Version specification
4.3.4
Code of Conduct
The text was updated successfully, but these errors were encountered: