mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-12-04 22:42:21 +00:00
Fix certain component IDs not being able to be settable afterwards
Fix #10305
This commit is contained in:
@@ -83,6 +83,15 @@ class Separator(Item[V]):
|
||||
def _is_v2(self):
|
||||
return True
|
||||
|
||||
@property
|
||||
def id(self) -> Optional[int]:
|
||||
"""Optional[:class:`int`]: The ID of this separator."""
|
||||
return self._underlying.id
|
||||
|
||||
@id.setter
|
||||
def id(self, value: Optional[int]) -> None:
|
||||
self._underlying.id = value
|
||||
|
||||
@property
|
||||
def visible(self) -> bool:
|
||||
""":class:`bool`: Whether this separator is visible.
|
||||
|
||||
Reference in New Issue
Block a user