Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix: actually return message data on interaction
Browse files Browse the repository at this point in the history
For some reason these return statements were removed in another commit's typing changes, this readds them
  • Loading branch information
LordOfPolls committed Sep 19, 2022
1 parent 3c422b6 commit d29314e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions naff/api/http/http_requests/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def post_initial_response(
files: The files to send in this message
"""
await self.request(
return await self.request(
Route("POST", f"/interactions/{interaction_id}/{token}/callback"), payload=payload, files=files
)

Expand All @@ -133,7 +133,9 @@ async def post_followup(
files: The files to send with this interaction
"""
await self.request(Route("POST", f"/webhooks/{int(application_id)}/{token}"), payload=payload, files=files)
return await self.request(
Route("POST", f"/webhooks/{int(application_id)}/{token}"), payload=payload, files=files
)

async def edit_interaction_message(
self,
Expand Down

0 comments on commit d29314e

Please sign in to comment.