mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Elaborate on rename decorator behaviour
This commit is contained in:
parent
7857a84598
commit
0b026b1283
@ -1686,6 +1686,9 @@ def rename(**parameters: str) -> Callable[[T], T]:
|
||||
r"""Renames the given parameters by their name using the key of the keyword argument
|
||||
as the name.
|
||||
|
||||
This renames the parameter within the Discord UI. When referring to the parameter in other
|
||||
decorators, the parameter name used in the function is used instead of the renamed one.
|
||||
|
||||
Example:
|
||||
|
||||
.. code-block:: python3
|
||||
|
Loading…
x
Reference in New Issue
Block a user