Update Transformer.choices docs to mention limit

Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
Rayzeq 2022-10-01 09:18:26 +02:00 committed by GitHub
parent 7c218b3833
commit e3b5fbd9e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.