Skip to content

Commit 123d917

Browse files
krittickBobDotCom
andauthored
Update examples/app_commands/slash_autocomplete.py
Co-authored-by: BobDotCom <[email protected]>
1 parent b71ec73 commit 123d917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/app_commands/slash_autocomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async def get_animals(ctx: discord.AutocompleteContext):
122122
return ["rainbowfish"]
123123

124124

125-
@slash_command(name="ac_example", guild_ids=[...])
125+
@bot.slash_command(name="ac_example")
126126
async def autocomplete_example(
127127
ctx: discord.ApplicationContext,
128128
color: Option(str, "Pick a color!", autocomplete=get_colors),

0 commit comments

Comments
 (0)