mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 07:53:01 +00:00
Fix views not being persistent if modifying custom_id after __init__
This commit is contained in:
@@ -152,6 +152,7 @@ class Button(Item[V]):
|
|||||||
raise TypeError('custom_id must be None or str')
|
raise TypeError('custom_id must be None or str')
|
||||||
|
|
||||||
self._underlying.custom_id = value
|
self._underlying.custom_id = value
|
||||||
|
self._provided_custom_id = value is not None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def url(self) -> Optional[str]:
|
def url(self) -> Optional[str]:
|
||||||
|
@@ -136,6 +136,7 @@ class Select(Item[V]):
|
|||||||
raise TypeError('custom_id must be None or str')
|
raise TypeError('custom_id must be None or str')
|
||||||
|
|
||||||
self._underlying.custom_id = value
|
self._underlying.custom_id = value
|
||||||
|
self._provided_custom_id = value is not None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def placeholder(self) -> Optional[str]:
|
def placeholder(self) -> Optional[str]:
|
||||||
|
Reference in New Issue
Block a user