Skip to content

Commit 67bc1fe

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

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
@@ -132,7 +132,7 @@ async def autocomplete_example(
132132
await ctx.respond(f"You picked {color} for the color, which allowed you to choose {animal} for the animal.")
133133

134134

135-
@slash_command(name="ac_basic_example", guild_ids=[...])
135+
@bot.slash_command(name="ac_basic_example")
136136
async def autocomplete_basic_example(
137137
ctx: discord.ApplicationContext,
138138
color: Option(str, "Pick a color from this big list", autocomplete=discord.utils.basic_autocomplete(color_searcher)), # Demonstrates passing a callback to discord.utils.basic_autocomplete

0 commit comments

Comments
 (0)