1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-15 10:19:59 +00:00

Fix typo in documentation and mention name kwarg interaction

This commit is contained in:
Rapptz 2022-05-11 03:20:57 -04:00
parent 15ceca1e63
commit cc3e714338

@ -920,7 +920,7 @@ This means that decorators that refer to a parameter by name will use the flag n
async def ban(ctx, *, flags: BanFlags):
...
For ease of use, the :func:`~ext.commands.flag` function accepts a ``descriptor`` keyword argument to allow you to pass descriptions inline:
For ease of use, the :func:`~ext.commands.flag` function accepts a ``description`` keyword argument to allow you to pass descriptions inline:
.. code-block:: python3
@ -935,6 +935,8 @@ For ease of use, the :func:`~ext.commands.flag` function accepts a ``descriptor`
...
Likewise, use of the ``name`` keyword argument allows you to pass renames for the parameter, similar to the :func:`~discord.app_commands.rename` decorator.
Note that in hybrid command form, a few annotations are unsupported due to Discord limitations:
- :data:`typing.Tuple`