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

Commit

Permalink
fix: positional argument error in fetch messages (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
LordOfPolls committed Sep 7, 2022
1 parent dd06e05 commit e1c8444
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion naff/models/discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ async def fetch_messages(
elif after:
after = to_snowflake(after)

messages_data = await self._client.http.get_channel_messages(self.id, limit, around, before, after)
messages_data = await self._client.http.get_channel_messages(
self.id, limit, around=around, before=before, after=after
)
for m in messages_data:
m["guild_id"] = self._guild_id

Expand Down

0 comments on commit e1c8444

Please sign in to comment.