Browse Source

chore: rename Section.get_item_by_id to Section.get_item

pull/10166/head
DA-344 2 months ago
parent
commit
5bde2f0d29
  1. 2
      discord/ui/section.py

2
discord/ui/section.py

@ -203,7 +203,7 @@ class Section(Item[V]):
return self
def get_item_by_id(self, id: int, /) -> Optional[Item[V]]:
def get_item(self, id: int, /) -> Optional[Item[V]]:
"""Gets an item with :attr:`Item.id` set as ``id``, or ``None`` if
not found.

Loading…
Cancel
Save