mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-03 18:42:43 +00:00
Ensure cog app commands is a list rather than a dict
There was a remnant of it being a dict in the metaclass.
This commit is contained in:
parent
a877b269da
commit
9dea6caf20
@ -177,7 +177,7 @@ class CogMeta(type):
|
||||
# Prefill the app commands for the Group as well..
|
||||
# The type checker doesn't like runtime attribute modification and this one's
|
||||
# optional so it can't be cheesed.
|
||||
new_cls.__discord_app_commands_group_children__ = cog_app_commands # type: ignore
|
||||
new_cls.__discord_app_commands_group_children__ = new_cls.__cog_app_commands__ # type: ignore
|
||||
|
||||
listeners_as_list = []
|
||||
for listener in listeners.values():
|
||||
|
Loading…
x
Reference in New Issue
Block a user