Skip to content

Commit

Permalink
Update discord/commands/options.py
Browse files Browse the repository at this point in the history
Co-authored-by: plun1331 <[email protected]>
Signed-off-by: Blue-Robin-Taken <[email protected]>
  • Loading branch information
Blue-Robin-Taken and plun1331 authored Dec 2, 2023
1 parent 91721f8 commit d961d1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion discord/commands/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ class Option:
The maximum length of the string that can be entered. Must be between 1 and 6000 (inclusive).
Only applies to Options with an :attr:`input_type` of :class:`str`.
autocomplete: Callable[[:class:`.AutocompleteContext`], Awaitable[Union[Iterable[:class:`.OptionChoice`], Iterable[:class:`str`], Iterable[:class:`int`], Iterable[:class:`float`]]]]
The autocomplete handler for the option. :func:`discord.utils.basic_autocomplete` may be used to create the callable.
The autocomplete handler for the option. Accepts a a callable (sync or async)
that takes a single argument of :class:`AutocompleteContext`
:func:`discord.utils.basic_autocomplete` may be used to create the callable.
.. note::
Expand Down

0 comments on commit d961d1a

Please sign in to comment.