We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c656aa4 commit d61968bCopy full SHA for d61968b
interactions/models/discord/components.py
@@ -816,7 +816,7 @@ def __init__(
816
@classmethod
817
def from_dict(cls, data: dict) -> "SectionComponent":
818
return cls(
819
- components=TextDisplayComponent.from_list(data["components"]), accessory=Button.from_dict(data["accessory"])
+ components=[BaseComponent.from_dict_factory(component) for component in data["components"]], accessory=BaseComponent.from_dict_factory(data["accessory"]) # type: ignore
820
)
821
822
def __repr__(self) -> str:
0 commit comments