From 2815e9bb1c0a9da8c2ba652401c45198c5e4e644 Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 1 Aug 2024 20:54:31 +0200 Subject: [PATCH] fix: :memo: Improve wording in `option` decorator slightly (#2512) :memo: Improve wording in `option` decorator slightly --- discord/commands/options.py | 2 +- discord/ext/bridge/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/commands/options.py b/discord/commands/options.py index 9c56e3aeee..721a03ffe3 100644 --- a/discord/commands/options.py +++ b/discord/commands/options.py @@ -424,7 +424,7 @@ def option(name, input_type=None, **kwargs): Attributes ---------- parameter_name: :class:`str` - The name of the target parameter this option is mapped to. + The name of the target function parameter this option is mapped to. This allows you to have a separate UI ``name`` and parameter name. """ diff --git a/discord/ext/bridge/core.py b/discord/ext/bridge/core.py index 384e9ab37a..103f345693 100644 --- a/discord/ext/bridge/core.py +++ b/discord/ext/bridge/core.py @@ -660,7 +660,7 @@ def bridge_option(name, input_type=None, **kwargs): Attributes ---------- parameter_name: :class:`str` - The name of the target parameter this option is mapped to. + The name of the target function parameter this option is mapped to. This allows you to have a separate UI ``name`` and parameter name. """