Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 7c094e4

Browse files
committed
Fixed pycord breaking changes
1 parent 6345e04 commit 7c094e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

information/user_info/cog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
)
3232
from discord.ext import commands
3333
from discord.ext.commands import Context, UserInputError, CommandError, max_concurrency, guild_only
34-
from discord.utils import snowflake_time
34+
from discord.utils import snowflake_time, utcnow
3535

3636
from .colors import Colors
3737
from .models import Join, Leave, UsernameUpdate, Verification
@@ -326,10 +326,10 @@ async def joined(self, ctx: Context, member: Member = None):
326326

327327
embed = Embed(
328328
title=t.userinfo,
329-
description=f"{member.mention} {date_diff_to_str(datetime.today(), ts)}",
329+
description=f"{member.mention} {date_diff_to_str(utcnow(), ts)}",
330330
color=Colors.joined,
331331
)
332-
embed.set_author(name=str(member), icon_url=member.avatar_url)
332+
embed.set_author(name=str(member), icon_url=member.display_avatar.url)
333333
await reply(ctx, embed=embed)
334334

335335
@commands.command()

0 commit comments

Comments
 (0)