Skip to content

Commit c9fc04c

Browse files
authored
Add timeout notice
1 parent 69f6563 commit c9fc04c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/app_commands/slash_basic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +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 use ctx.respond(), ctx.defer(), or any other interaction response
18-
# in your slash command code, otherwise the interaction will fail.
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.
1920

2021

2122
@bot.slash_command(

0 commit comments

Comments
 (0)