Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 61fb64b

Browse files
authored
Update core.py
1 parent 148d23a commit 61fb64b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

appcommands/core.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def response(self) -> discord.InteractionResponse:
354354

355355
author = user
356356

357-
def respond(self, *args, **kwargs) -> Coroutine:
357+
async def respond(self, *args, **kwargs) -> Coroutine:
358358
"""|coro|
359359
360360
Responds to this interaction by sending a message.
@@ -388,8 +388,14 @@ def respond(self, *args, **kwargs) -> Coroutine:
388388
The length of ``embeds`` was invalid.
389389
discord.InteractionResponded
390390
This interaction has already been responded to before.
391+
392+
Returns
393+
--------
394+
:class:`discord.InteractionMessage`
395+
The newly sent message.
391396
"""
392-
return self.interaction.response.send_message(*args, **kwargs)
397+
await self.interaction.response.send_message(*args, **kwargs)
398+
return await self.interaction.original_message()
393399

394400
def edit(self, *args, **kwargs):
395401
"""|coro|

0 commit comments

Comments
 (0)