Skip to content

Commit 8308615

Browse files
authored
misc
1 parent 0060e0f commit 8308615

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

discord/ui/action_row.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ def __init__(
8787
self.add_item(i)
8888

8989
def _add_component_from_item(self, item: Item):
90-
self._underlying.components.append(item._underlying)
90+
self._underlying.children.append(item._underlying)
9191

9292
def _set_components(self, items: list[Item]):
93-
self._underlying.components.clear()
93+
self._underlying.children.clear()
9494
for item in items:
9595
self._add_component_from_item(item)
9696

@@ -174,7 +174,7 @@ def add_button(
174174
"""Adds a :class:`Button` to the action row.
175175
176176
To append a pre-existing :class:`Button`, use the
177-
:meth:`add_item` method, instead.
177+
:meth:`add_item` method instead.
178178
179179
Parameters
180180
----------
@@ -223,7 +223,10 @@ def add_select(
223223
disabled: bool = False,
224224
id: int | None = None,
225225
) -> Self:
226-
"""Adds a :class:`TextDisplay` to the container.
226+
"""Adds a :class:`Select` to the container.
227+
228+
To append a pre-existing :class:`Select`, use the
229+
:meth:`add_item` method instead.
227230
228231
Parameters
229232
----------

0 commit comments

Comments
 (0)