From b1e8aefd538d2141037975c7f23842ab81702bcd Mon Sep 17 00:00:00 2001 From: DA344 <108473820+DA-344@users.noreply.github.com> Date: Mon, 10 Mar 2025 22:21:43 +0100 Subject: [PATCH] fix: Containers not dispatching ActionRow items correctly --- discord/ui/container.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/ui/container.py b/discord/ui/container.py index fd9dd0c49..1e4aa0bf7 100644 --- a/discord/ui/container.py +++ b/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