Ensure views added to Client.add_view are persistent views

This commit is contained in:
Rapptz
2021-05-31 23:08:08 -04:00
parent c811932ca7
commit 7c40e83d10
5 changed files with 26 additions and 0 deletions

View File

@ -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(