Skip to content

Commit e615190

Browse files
authored
actionrow components
1 parent 2816b1b commit e615190

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

discord/components.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ def to_dict(self) -> ActionRowPayload:
192192
def walk_components(self) -> Iterator[Component]:
193193
yield from self.children
194194

195+
@property
196+
def components(self) -> list[Component]:
197+
return self.children
198+
195199
def get_component(self, id: str | int) -> Component | None:
196200
"""Get a component from this action row. Roughly equivalent to `utils.get(row.children, ...)`.
197201
If an ``int`` is provided, the component will be retrieved by ``id``, otherwise by ``custom_id``.

0 commit comments

Comments
 (0)