Skip to content

Commit cc6d435

Browse files
authored
Merge pull request #642 from HyperGH/patch-4
Add a note about using ctx.respond in slash_basic example
2 parents 04ec5bf + c9fc04c commit cc6d435

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/app_commands/slash_basic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
async def hello(ctx):
1515
"""Say hello to the bot""" # the command description can be supplied as the docstring
1616
await ctx.respond(f"Hello {ctx.author}!")
17+
# Please note that you MUST respond with ctx.respond(), ctx.defer(), or any other
18+
# interaction response within 3 seconds in your slash command code, otherwise the
19+
# interaction will fail.
1720

1821

1922
@bot.slash_command(

0 commit comments

Comments
 (0)