Add autocomplete warning about user input

This commit is contained in:
rdrescher909 2022-12-02 06:10:03 -05:00 committed by GitHub
parent da317ad84b
commit c0dfdf1bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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