mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Document app_commands.Choice limits
This commit is contained in:
parent
9237106ee3
commit
b92fd65707
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user