Browse Source

Merge branch 'feat/components-v2' of https://github.com/DA-344/d.py into feat/components-v2

pull/10166/head
DA-344 2 months ago
parent
commit
dddf502458
  1. 2
      discord/ui/container.py

2
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

Loading…
Cancel
Save