Browse Source

add _swap_item for ActionRow

pull/10271/head
DA-344 2 weeks ago
parent
commit
7bba9d4aba
  1. 4
      discord/ui/action_row.py

4
discord/ui/action_row.py

@ -194,6 +194,10 @@ class ActionRow(Item[V]):
# it should error anyways.
return True
def _swap_item(self, base, new, custom_id) -> None:
child_index = self._children.index(base)
self._children[child_index] = new # type: ignore
@property
def width(self):
return 5

Loading…
Cancel
Save