mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Update Transformer.choices docs to mention limit
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
parent
7c218b3833
commit
e3b5fbd9e6
@ -286,7 +286,7 @@ class Transformer:
|
||||
|
||||
@property
|
||||
def choices(self) -> Optional[List[Choice[Union[int, float, str]]]]:
|
||||
"""Optional[List[:class:`~discord.app_commands.Choice`]]: A list of choices that are allowed to this parameter.
|
||||
"""Optional[List[:class:`~discord.app_commands.Choice`]]: A list of up to 25 choices that are allowed to this parameter.
|
||||
|
||||
Only valid if the :meth:`type` returns :attr:`~discord.AppCommandOptionType.number`
|
||||
:attr:`~discord.AppCommandOptionType.integer`, or :attr:`~discord.AppCommandOptionType.string`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user