From 5bde2f0d29417e940ab2c120a84919fd0b255d08 Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Wed, 28 May 2025 19:06:30 +0200 Subject: [PATCH] chore: rename Section.get_item_by_id to Section.get_item --- discord/ui/section.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ui/section.py b/discord/ui/section.py index da81fe38d..55072ff76 100644 --- a/discord/ui/section.py +++ b/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.