Document app_commands.Choice limits

This commit is contained in:
Rapptz 2022-08-26 11:59:12 -04:00
parent 9237106ee3
commit b92fd65707

View File

@ -424,10 +424,12 @@ class Choice(Generic[ChoiceT]):
-----------
name: Union[:class:`str`, :class:`locale_str`]
The name of the choice. Used for display purposes.
Can only be up to 100 characters.
name_localizations: Dict[:class:`~discord.Locale`, :class:`str`]
The localised names of the choice. Used for display purposes.
value: Union[:class:`int`, :class:`str`, :class:`float`]
The value of the choice.
The value of the choice. If it's a string, it can only be
up to 100 characters long.
"""
__slots__ = ('name', 'value', '_locale_name', 'name_localizations')