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 2816b1b commit e615190Copy full SHA for e615190
discord/components.py
@@ -192,6 +192,10 @@ def to_dict(self) -> ActionRowPayload:
192
def walk_components(self) -> Iterator[Component]:
193
yield from self.children
194
195
+ @property
196
+ def components(self) -> list[Component]:
197
+ return self.children
198
+
199
def get_component(self, id: str | int) -> Component | None:
200
"""Get a component from this action row. Roughly equivalent to `utils.get(row.children, ...)`.
201
If an ``int`` is provided, the component will be retrieved by ``id``, otherwise by ``custom_id``.
0 commit comments