Skip to content

Commit 82470d5

Browse files
committed
Make sure to pass id as a keyword argument.
1 parent 5836df2 commit 82470d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cogs/modmail.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ async def logs(self, ctx, *, user: User = None):
10421042
thread = ctx.thread
10431043
if not thread:
10441044
raise commands.MissingRequiredArgument(SimpleNamespace(name="member"))
1045-
user = thread.recipient or await get_or_fetch_user(self.bot, thread.id)
1045+
user = thread.recipient or await get_or_fetch_user(self.bot, id=thread.id)
10461046

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

0 commit comments

Comments
 (0)