Skip to content

Commit

Permalink
docs: clarify autocomplete docs (#2055)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustaSqu1d authored May 8, 2023
1 parent c43727b commit 32e7b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/commands/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,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: Optional[:class:`Any`]
The autocomplete handler for the option. Accepts an iterable of :class:`str`, a callable (sync or async)
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`.
Must resolve to an iterable of :class:`str` or :class:`OptionChoice`.
.. note::
Expand Down

0 comments on commit 32e7b67

Please sign in to comment.