From a419149f019221221dfa90fc36e0bb16c3c26716 Mon Sep 17 00:00:00 2001 From: DigiDuncan Date: Tue, 3 Jan 2023 00:49:16 -0500 Subject: [PATCH] avatar_url -> avatar --- sizebot/cogs/help.py | 4 ++-- sizebot/lib/userdb.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sizebot/cogs/help.py b/sizebot/cogs/help.py index d019762c..b8b5e4fd 100644 --- a/sizebot/cogs/help.py +++ b/sizebot/cogs/help.py @@ -110,7 +110,7 @@ async def send_summary_help(self, ctx): embed = Embed(title=f"Help [SizeBot {__version__}]") embed.set_footer(text = "Select an emoji to see details about a category.") - embed.set_author(name = f"requested by {ctx.author.name}", icon_url = ctx.author.avatar_url) + embed.set_author(name = f"requested by {ctx.author.name}", icon_url = ctx.author.avatar) # Add each category to a field for cat in categories: @@ -145,7 +145,7 @@ async def send_summary_help(self, ctx): async def send_category_help(self, ctx, category, cmds): # Prepare the embed for the category embed = Embed(title=f"{category.name} Help [SizeBot {__version__}]") - embed.set_author(name = ctx.author.name, icon_url = ctx.author.avatar_url) + embed.set_author(name = ctx.author.name, icon_url = ctx.author.avatar) command_texts = [f"`{c.name}` {c.alias_string}\n{c.short_doc}" for c in cmds] embed.add_field(value=f"**{category.emoji}{category.name}**", inline=False) diff --git a/sizebot/lib/userdb.py b/sizebot/lib/userdb.py index 2979c996..3fe25489 100644 --- a/sizebot/lib/userdb.py +++ b/sizebot/lib/userdb.py @@ -673,7 +673,7 @@ def load(guildid, userid, *, member=None, allow_unreg=False) -> User: if member: if not user.gender: user.soft_gender = member.gender - user.avatar_url = member.avatar_url + user.avatar_url = member.avatar if (not allow_unreg) and (not user.registered): raise errors.UserNotFoundException(guildid, userid, unreg=True)