From f321efd4de26b7bf7eeeadcccba039478cc6672c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 28 May 2021 09:43:15 -0400 Subject: Default SelectOption.value to the label if not given --- discord/ui/select.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/ui') diff --git a/discord/ui/select.py b/discord/ui/select.py index e6276ffb..cbbee3bc 100644 --- a/discord/ui/select.py +++ b/discord/ui/select.py @@ -158,7 +158,7 @@ class Select(Item[V]): self, *, label: str, - value: str, + value: str = MISSING, description: Optional[str] = None, emoji: Optional[Union[str, PartialEmoji]] = None, default: bool = False, @@ -175,7 +175,7 @@ class Select(Item[V]): Can only be up to 25 characters. value: :class:`str` The value of the option. This is not displayed to users. - Can only be up to 100 characters. + If not given, defaults to the label. Can only be up to 100 characters. description: Optional[:class:`str`] An additional description of the option, if any. Can only be up to 50 characters. -- cgit v1.2.3