From 92053a0899dd205166022753aca715b6e7a41378 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 28 Feb 2023 15:19:59 -0500 Subject: [PATCH] fixed avatars I think --- galaxy/galaxy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index b07af6c..2e87307 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -20,14 +20,15 @@ class Galaxy(commands.Cog): colorint = member.color.value color = re.sub('#',"",str(member.color)) colorcodelink = f"https://www.color-hex.com/color/{color}" + avatarurl = str({member.avatar_url_as(format="png")}) timestamp_create = int(datetime.timestamp(member.created_at)) timestamp_join = int(datetime.timestamp(member.joined_at)) embed = discord.Embed(title=f"{member.name}#{member.discriminator}", color=colorint) embed.add_field(name="Joined At", value=f"") embed.add_field(name="Created At", value=f"") - embed.add_field(name="Avatar", value=f"[Click Here]({member.avatar_url})") + embed.add_field(name="Avatar", value=f"[Click Here]({avatarurl})") embed.add_field(name="Roles", value=f"{member.roles}") - embed.set_thumbnail(url={member.avatar_url}) + embed.set_thumbnail(url=f"{avatarurl}") embed.set_footer(text=f"ID: {member.id}") await ctx.send(embed=embed)