Skip to content

Commit

Permalink
Merge pull request Pycord-Development#356 from krittick/master
Browse files Browse the repository at this point in the history
Return Interaction object in send_message
  • Loading branch information
Lulalaby authored Oct 30, 2021
2 parents b905d5c + e77c198 commit 5a23a46
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 5a23a46

Please sign in to comment.