Skip to content

Commit

Permalink
return Interaction object in send_message
Browse files Browse the repository at this point in the history
  • Loading branch information
krittick committed Oct 30, 2021
1 parent b905d5c commit e77c198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ async def send_message(
file: File = None,
files: List[File] = None,
delete_after: float = None
) -> None:
) -> Interaction:
"""|coro|
Responds to this interaction by sending a message.
Expand Down Expand Up @@ -600,7 +600,7 @@ async def delete():
await asyncio.sleep(delete_after)
await self._parent.delete_original_message()
asyncio.ensure_future(delete(), loop=self._parent._state.loop)

return self._parent

async def edit_message(
self,
Expand Down

0 comments on commit e77c198

Please sign in to comment.