From 0b026b12835ceff2027d77b52ecb0cb095ce37e1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 31 May 2022 18:14:18 -0400 Subject: [PATCH] Elaborate on rename decorator behaviour --- discord/app_commands/commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py index e1aeef0c6..c76768aae 100644 --- a/discord/app_commands/commands.py +++ b/discord/app_commands/commands.py @@ -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