Rename arguments in Hybrid Command #8365
Answered
by
Soheab
p-krystian
asked this question in
Q&A
-
Is a way to set a different argument name showing on Discord instead of name in the code? |
Beta Was this translation helpful? Give feedback.
Answered by
Soheab
Aug 21, 2022
Replies: 1 comment 1 reply
-
You can use the @app_commands.describe decorator for the description that will show up on discord for the arguments. @app_commands.describe(message="The message")
async def say(ctx, message: str):
... And for ext.commands (in the help command), you can use the async def say(ctx, message: str = commands.Parameter(description="The message")):
... Both can be used at the same time. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
p-krystian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the @app_commands.describe decorator for the description that will show up on discord for the arguments.
And for ext.commands (in the help command), you can use the
description=
kwarg in commands.Parameter.Both can be used at the same time.