mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-03 08:35:53 +00:00
Update total count tracking to always consider the wrapper object
This commit is contained in:
@ -203,6 +203,11 @@ class ActionRow(Item[V]):
|
||||
def width(self):
|
||||
return 5
|
||||
|
||||
@property
|
||||
def _total_count(self) -> int:
|
||||
# 1 for self and all children
|
||||
return 1 + len(self._children)
|
||||
|
||||
@property
|
||||
def type(self) -> Literal[ComponentType.action_row]:
|
||||
return ComponentType.action_row
|
||||
|
Reference in New Issue
Block a user