Adding Descriptions on each of the choices or options #981
Unanswered
Tobies-Cormac
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hi, there are multiple ways to add a description to an option; as mentioned here in the docs you could use docstrings writed in a certain way. e.g @commands.slash_command()
async def test(self, inter, name):
"""
A test command
Parameters
------------------
name: a name
"""
... another way would be to use e.g @commands.slash_command()
async def test(self, inter, name: str = commands.ParamInfo(name="name", description="a user name")):
... edit: sorry if the indentation looks weird but I'm on mobile |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to add descriptions to to choices?
Currently i'm testing out a slash command which i'm able to add the description for command and also description for the required variable input. However i can't find a way to add a description to each of the options. I searched through web multiple time and i just can't find the solution. may be i can't read the document correctly.
So please if u can help.
Here is the code that i'm dealing with :
Which i'm getting now :
I would like to add description like this:
Beta Was this translation helpful? Give feedback.
All reactions