Browse Source

Add autocomplete warning about user input

pull/9108/head
rdrescher909 2 years ago
committed by GitHub
parent
commit
c0dfdf1bef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      discord/app_commands/commands.py

6
discord/app_commands/commands.py

@ -1065,6 +1065,9 @@ class Command(Generic[GroupT, P, T]):
The coroutine decorator **must** return a list of :class:`~discord.app_commands.Choice` objects.
Only up to 25 objects are supported.
.. warning::
The choices returned from this coroutine are suggestions. The user may ignore them and input their own value.
Example:
.. code-block:: python3
@ -2271,6 +2274,9 @@ def autocomplete(**parameters: AutocompleteCallback[GroupT, ChoiceT]) -> Callabl
For more information, see the :meth:`Command.autocomplete` documentation.
.. warning::
The choices returned from this coroutine are suggestions. The user may ignore them and input their own value.
Example:
.. code-block:: python3

Loading…
Cancel
Save