diff --git a/discord/components.py b/discord/components.py index 6dbe2e710..407e460b0 100644 --- a/discord/components.py +++ b/discord/components.py @@ -1267,9 +1267,9 @@ class Container(Component): def to_dict(self) -> ContainerComponentPayload: payload: ContainerComponentPayload = { - 'type': self.type.value, # type: ignore + 'type': self.type.value, 'spoiler': self.spoiler, - 'components': [c.to_dict() for c in self.children], + 'components': [c.to_dict() for c in self.children], # pyright: ignore[reportAssignmentType] } if self.id is not None: payload['id'] = self.id