mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-18 20:14:42 +00:00
Fix certain component IDs not being able to be settable afterwards
Fix #10305
This commit is contained in:
@@ -100,7 +100,15 @@ class File(Item[V]):
|
||||
spoiler=bool(spoiler),
|
||||
id=id,
|
||||
)
|
||||
self.id = id
|
||||
|
||||
@property
|
||||
def id(self) -> Optional[int]:
|
||||
"""Optional[:class:`int`]: The ID of this file component."""
|
||||
return self._underlying.id
|
||||
|
||||
@id.setter
|
||||
def id(self, value: Optional[int]) -> None:
|
||||
self._underlying.id = value
|
||||
|
||||
def _is_v2(self):
|
||||
return True
|
||||
|
Reference in New Issue
Block a user