Fix views not being persistent if modifying custom_id after __init__

This commit is contained in:
Varun J authored and GitHub committed 2022-07-31 04:53:25 -04:00
1 parent 7d11e2a27c
commit c26473d0eb
2 files changed
+2

No files matched your search

+1
View File
@@ -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]:
+1
View File
@@ -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]: