mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-10 15:59:50 +00:00
Always use last value as a fallback for Select.values
This commit is contained in:
parent
9c38cf3aef
commit
ff1dd586d3
@ -263,8 +263,8 @@ class Select(Item[V]):
|
||||
@property
|
||||
def values(self) -> List[str]:
|
||||
"""List[:class:`str`]: A list of values that have been selected by the user."""
|
||||
values = selected_values.get(None)
|
||||
return self._values if values is None else values.get(self.custom_id, [])
|
||||
values = selected_values.get({})
|
||||
return values.get(self.custom_id, self._values)
|
||||
|
||||
@property
|
||||
def width(self) -> int:
|
||||
|
Loading…
x
Reference in New Issue
Block a user