Skip to content

Commit e77c198

Browse files
committed
return Interaction object in send_message
1 parent b905d5c commit e77c198

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/interactions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ async def send_message(
475475
file: File = None,
476476
files: List[File] = None,
477477
delete_after: float = None
478-
) -> None:
478+
) -> Interaction:
479479
"""|coro|
480480
481481
Responds to this interaction by sending a message.
@@ -600,7 +600,7 @@ async def delete():
600600
await asyncio.sleep(delete_after)
601601
await self._parent.delete_original_message()
602602
asyncio.ensure_future(delete(), loop=self._parent._state.loop)
603-
603+
return self._parent
604604

605605
async def edit_message(
606606
self,

0 commit comments

Comments
 (0)