mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Ensure views added to Client.add_view are persistent views
This commit is contained in:
1 parent
c811932ca7
commit
7c40e83d10
5 files changed
+26
No files matched your search
@@ -101,6 +101,7 @@ class Select(Item[V]):
|
||||
row: Optional[int] = None,
|
||||
) -> None:
|
||||
self._selected_values: List[str] = []
|
||||
self._provided_custom_id = custom_id is not MISSING
|
||||
custom_id = os.urandom(16).hex() if custom_id is MISSING else custom_id
|
||||
options = [] if options is MISSING else options
|
||||
self._underlying = SelectMenu._raw_construct(
|
||||
|
||||
Reference in new issue
Block a user