mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 17:36:15 +00:00
Update total count tracking to always consider the wrapper object
This commit is contained in:
@ -102,6 +102,11 @@ class Section(Item[V]):
|
||||
def width(self):
|
||||
return 5
|
||||
|
||||
@property
|
||||
def _total_count(self) -> int:
|
||||
# Count the accessory, ourselves, and all children
|
||||
return 2 + len(self._children)
|
||||
|
||||
@property
|
||||
def accessory(self) -> Item[V]:
|
||||
""":class:`Item`: The section's accessory."""
|
||||
|
Reference in New Issue
Block a user