mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Add autocomplete warning about user input
This commit is contained in:
parent
da317ad84b
commit
c0dfdf1bef
@ -1065,6 +1065,9 @@ class Command(Generic[GroupT, P, T]):
|
|||||||
The coroutine decorator **must** return a list of :class:`~discord.app_commands.Choice` objects.
|
The coroutine decorator **must** return a list of :class:`~discord.app_commands.Choice` objects.
|
||||||
Only up to 25 objects are supported.
|
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:
|
Example:
|
||||||
|
|
||||||
.. code-block:: python3
|
.. code-block:: python3
|
||||||
@ -2271,6 +2274,9 @@ def autocomplete(**parameters: AutocompleteCallback[GroupT, ChoiceT]) -> Callabl
|
|||||||
|
|
||||||
For more information, see the :meth:`Command.autocomplete` documentation.
|
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:
|
Example:
|
||||||
|
|
||||||
.. code-block:: python3
|
.. code-block:: python3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user