Skip to content

Commit

Permalink
Make sure to pass id as a keyword argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwerty-133 committed Sep 19, 2021
1 parent 5836df2 commit 82470d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ async def logs(self, ctx, *, user: User = None):
thread = ctx.thread
if not thread:
raise commands.MissingRequiredArgument(SimpleNamespace(name="member"))
user = thread.recipient or await get_or_fetch_user(self.bot, thread.id)
user = thread.recipient or await get_or_fetch_user(self.bot, id=thread.id)

default_avatar = "https://cdn.discordapp.com/embed/avatars/0.png"
icon_url = getattr(user, "avatar_url", default_avatar)
Expand Down

0 comments on commit 82470d5

Please sign in to comment.