mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-04 09:10:11 +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`]
|
name: Union[:class:`str`, :class:`locale_str`]
|
||||||
The name of the choice. Used for display purposes.
|
The name of the choice. Used for display purposes.
|
||||||
|
Can only be up to 100 characters.
|
||||||
name_localizations: Dict[:class:`~discord.Locale`, :class:`str`]
|
name_localizations: Dict[:class:`~discord.Locale`, :class:`str`]
|
||||||
The localised names of the choice. Used for display purposes.
|
The localised names of the choice. Used for display purposes.
|
||||||
value: Union[:class:`int`, :class:`str`, :class:`float`]
|
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')
|
__slots__ = ('name', 'value', '_locale_name', 'name_localizations')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user