From a1216e7c365805911aca3bcf6feeb767adaa9734 Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Fri, 18 Apr 2025 22:59:44 +0200 Subject: [PATCH] fix error when using Message.components --- discord/components.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/discord/components.py b/discord/components.py index 5ed52891f..80842f7fc 100644 --- a/discord/components.py +++ b/discord/components.py @@ -1214,6 +1214,20 @@ class Container(Component): The ID of this component. """ + __slots__ = ( + 'children', + 'id', + 'spoiler', + '_colour', + ) + + __repr_info__ = ( + 'children', + 'id', + 'spoiler', + 'accent_colour', + ) + def __init__(self, data: ContainerComponentPayload, state: Optional[ConnectionState]) -> None: self.children: List[Component] = [] self.id: Optional[int] = data.get('id')