Skip to content

Commit 66ae58d

Browse files
authored
Document optional description kwarg for selects
1 parent 67a4611 commit 66ae58d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/components.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,5 @@ Yep we support those too. You use them much the same as buttons. You can only ha
140140
async def on_component(ctx: ComponentContext):
141141
# ctx.selected_options is a list of all the values the user selected
142142
await ctx.send(content=f"You selected {ctx.selected_options}")
143+
144+
Additionally, you can pass `description` as a keyword-argument for `create_select_option()` if you so wish.

0 commit comments

Comments
 (0)