How to give parameter of a command a description? #1861
-
Beta Was this translation helpful? Give feedback.
Answered by
JustaSqu1d
Jan 7, 2023
Replies: 1 comment 1 reply
-
Using the example, we can use the @bot.slash_command()
@discord.option(
name = "year"
description = "What year will it be?"
)
async def command(ctx, year: int):
pass I would like to add that this discussion category should not be used for help, rather, please join our Discord server for help instead. If you require further assistance please do the same. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Dorukyum
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the example, we can use the
option
decorator to add a name and a description to the option like so:I would like to add that this discussion category should not be used for help, rather, please join our Discord server for help instead. If you require further assistance please do the same.