Skip to content

Commit

Permalink
Update examples/app_commands/slash_autocomplete.py
Browse files Browse the repository at this point in the history
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
  • Loading branch information
krittick and BobDotCom authored Nov 25, 2021
1 parent b71ec73 commit 123d917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/app_commands/slash_autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def get_animals(ctx: discord.AutocompleteContext):
return ["rainbowfish"]


@slash_command(name="ac_example", guild_ids=[...])
@bot.slash_command(name="ac_example")
async def autocomplete_example(
ctx: discord.ApplicationContext,
color: Option(str, "Pick a color!", autocomplete=get_colors),
Expand Down

0 comments on commit 123d917

Please sign in to comment.