Skip to content

Commit

Permalink
Merge pull request #92 from berrytern/patch-1
Browse files Browse the repository at this point in the history
fix: corroutine never awaited in `direct_messages` method
  • Loading branch information
subzeroid authored Sep 15, 2024
2 parents 9681410 + f702297 commit 5ccfcdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiograpi/mixins/direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async def direct_messages(
"""
if not self.user_id:
raise PreLoginRequired
return await self.direct_thread(thread_id, amount).messages
return (await self.direct_thread(thread_id, amount)).messages

async def direct_answer(self, thread_id: int, text: str) -> DirectMessage:
"""
Expand Down

0 comments on commit 5ccfcdd

Please sign in to comment.