mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 02:39:01 +00:00
Fix views not being persistent if modifying custom_id after __init__
This commit is contained in:
parent
7d11e2a27c
commit
c26473d0eb
@ -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]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user