Update total count tracking to always consider the wrapper object

This commit is contained in:
Rapptz
2025-08-21 22:20:12 -04:00
parent 0309aac335
commit 9bda89b0d6
6 changed files with 28 additions and 18 deletions

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], /