Update total count tracking to always consider the wrapper object

This commit is contained in:
Rapptz committed 2025-08-22 20:05:55 -04:00
1 parent 735b033701
commit 60fd97bfda
6 files changed
+28 -18

No files matched your search

+4
View File
@@ -168,6 +168,10 @@ class DynamicItem(Generic[BaseT], Item[Union[View, LayoutView]]):
def width(self) -> int:
return self.item.width
@property
def _total_count(self) -> int:
return self.item._total_count
@classmethod
async def from_custom_id(
cls: Type[Self], interaction: Interaction[ClientT], item: Item[Any], match: re.Match[str], /