Browse Source

fix error when using Message.components

pull/10166/head
DA-344 3 months ago
parent
commit
a1216e7c36
  1. 14
      discord/components.py

14
discord/components.py

@ -1214,6 +1214,20 @@ class Container(Component):
The ID of this 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: def __init__(self, data: ContainerComponentPayload, state: Optional[ConnectionState]) -> None:
self.children: List[Component] = [] self.children: List[Component] = []
self.id: Optional[int] = data.get('id') self.id: Optional[int] = data.get('id')

Loading…
Cancel
Save