Browse Source

chore: Add Container.type property

raised NotImplementedError

Co-authored-by: owocado <24418520+owocado@users.noreply.github.com>
pull/10166/head
DA344 2 months ago
committed by GitHub
parent
commit
4f2040593d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      discord/components.py

4
discord/components.py

@ -1261,6 +1261,10 @@ class Container(Component):
accent_color = accent_colour
@property
def type(self) -> Literal[ComponentType.container]:
return ComponentType.container
def to_dict(self) -> ContainerComponentPayload:
payload: ContainerComponentPayload = {
'type': self.type.value, # type: ignore

Loading…
Cancel
Save