Skip to content

Commit 68b565a

Browse files
authored
Copilot
Signed-off-by: Paillat <jeremiecotti@ik.me>
1 parent 7fdf1d2 commit 68b565a

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
@@ -219,7 +219,7 @@ async def food_autocomplete(
219219
"Pick a fruit",
220220
autocomplete=partial(food_autocomplete, food_type="fruit"),
221221
)
222-
async def get_fruit(self, ctx: discord.ApplicationContext, choice: str):
222+
async def get_fruit(ctx: discord.ApplicationContext, choice: str):
223223
await ctx.respond(f'You picked "{choice}"')
224224

225225

@@ -229,7 +229,7 @@ async def get_fruit(self, ctx: discord.ApplicationContext, choice: str):
229229
"Pick a vegetable",
230230
autocomplete=partial(food_autocomplete, food_type="vegetable"),
231231
)
232-
async def get_vegetable(self, ctx: discord.ApplicationContext, choice: str):
232+
async def get_vegetable(ctx: discord.ApplicationContext, choice: str):
233233
await ctx.respond(f'You picked "{choice}"')
234234

235235

0 commit comments

Comments
 (0)