1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-15 10:19:59 +00:00

Fix views not being persistent if modifying custom_id after __init__

This commit is contained in:
Varun J 2022-07-31 14:23:25 +05:30 committed by GitHub
parent 7d11e2a27c
commit c26473d0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

@ -152,6 +152,7 @@ class Button(Item[V]):
raise TypeError('custom_id must be None or str')
self._underlying.custom_id = value
self._provided_custom_id = value is not None
@property
def url(self) -> Optional[str]:

@ -136,6 +136,7 @@ class Select(Item[V]):
raise TypeError('custom_id must be None or str')
self._underlying.custom_id = value
self._provided_custom_id = value is not None
@property
def placeholder(self) -> Optional[str]: