mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-31 15:31:36 +00:00
Add accessory to Section.__repr__
This commit is contained in:
parent
7c52dbdba0
commit
116107d7ed
@ -87,7 +87,7 @@ class Section(Item[V]):
|
|||||||
self.id = id
|
self.id = id
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f'<{self.__class__.__name__} children={len(self._children)}>'
|
return f'<{self.__class__.__name__} children={len(self._children)} accessory={self._accessory!r}>'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def type(self) -> Literal[ComponentType.section]:
|
def type(self) -> Literal[ComponentType.section]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user