Skip to content

Commit

Permalink
Update options.py
Browse files Browse the repository at this point in the history
Signed-off-by: Blue-Robin-Taken <[email protected]>
  • Loading branch information
Blue-Robin-Taken authored Nov 20, 2023
1 parent 73e7173 commit d3da171
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions discord/commands/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,9 @@ class Option:
max_length: Optional[:class:`int`]
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: Optional[:class:`Any`]
The autocomplete handler for the option. Accepts an iterable of :class:`str` or :class:`OptionChoice`, a callable (sync or async)
that takes a single argument of :class:`AutocompleteContext`, or a coroutine.
Must resolve to an iterable of :class:`str` or :class:`OptionChoice`.
autocomplete: Callable[[:class:`.AutocompleteContext`], Awaitable[Union[Iterable[:class:`.OptionChoice`], Iterable[:class:`str`], Iterable[:class:`int`], Iterable[:class:`float`]]]]
The autocomplete handler for the option. Use :func:`discord.utils.basic_autocomplete` to create the callable.
.. note::
Expand Down

0 comments on commit d3da171

Please sign in to comment.