Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return Interaction object in send_message #356

Merged
merged 1 commit into from
Oct 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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