Skip to content

Commit c49c397

Browse files
committed
add EOF newline, rename function
1 parent beee733 commit c49c397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/app_commands/slash_autocomplete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ async def get_animals(ctx: discord.AutocompleteContext):
3030

3131

3232
@slash_command(name="ac_colors")
33-
async def autocomplete_basic_example(ctx: discord.ApplicationContext, color: Option(str, "Pick a color!", autocomplete=get_colors), animal: Option(str, "Pick an animal!", autocomplete=get_animals)):
34-
await ctx.respond(f"You picked {color} for the color, which allowed you to choose {animal} for the animal.")
33+
async def autocomplete_example(ctx: discord.ApplicationContext, color: Option(str, "Pick a color!", autocomplete=get_colors), animal: Option(str, "Pick an animal!", autocomplete=get_animals)):
34+
await ctx.respond(f"You picked {color} for the color, which allowed you to choose {animal} for the animal.")

0 commit comments

Comments
 (0)