Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit d568fa1

Browse files
authored
Update README.md
1 parent 7d386f4 commit d568fa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ from discord_ui import UI, SlashOption, ChoiceGeneratorContext
100100

101101
async def generator(ctx: ChoiceGeneratorContext):
102102
available_choices = ["hmm", "this", "is", "a", "an", "test", "testing"]
103-
return [x for x in available_choices if x.startswith(ctx.value_query)]
103+
return [(x, x) for x in available_choices if x.startswith(ctx.value_query)]
104104

105105
@ui.slash.command("search_word", options=[SlashOption(str, "query", choice_generator=generator)])
106106
async def search_word(ctx, query):

0 commit comments

Comments
 (0)