Skip to content
Discussion options

You must be logged in to vote

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 description= kwarg in commands.Parameter.

async def say(ctx, message: str = commands.Parameter(description="The message")):
    ...

Both can be used at the same time.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@p-krystian
Comment options

Answer selected by p-krystian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants