Skip to content

Commit

Permalink
avatar_url -> avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiDuncan committed Jan 3, 2023
1 parent 2b0b4e5 commit a419149
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sizebot/cogs/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion sizebot/lib/userdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a419149

Please sign in to comment.