diff --git a/discord/components.py b/discord/components.py index 514b0819b..6dbe2e710 100644 --- a/discord/components.py +++ b/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