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

fix: positional argument error in fetch messages #627

Merged
merged 1 commit into from
Sep 7, 2022
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: 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