Browse Source
fix: Containers not dispatching ActionRow items correctly
pull/10166/head
DA344
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
discord/ui/container.py
|
|
@ -119,6 +119,8 @@ class Container(Item[V]): |
|
|
|
|
|
|
|
if getattr(raw, '__discord_ui_section__', False) and raw.accessory.is_dispatchable(): # type: ignore |
|
|
|
self.__dispatchable.append(raw.accessory) # type: ignore |
|
|
|
elif getattr(raw, '__discord_ui_action_row__', False) and raw.is_dispatchable(): |
|
|
|
self.__dispatchable.extend(raw._children) # type: ignore |
|
|
|
else: |
|
|
|
# action rows can be created inside containers, and then callbacks can exist here |
|
|
|
# so we create items based off them |
|
|
|