From a7a38433c6091a3653dc9bf493e02e8116d7f084 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 7 Aug 2023 20:15:31 -0400 Subject: [PATCH] fix: more avatar-related fixes --- info/info.py | 6 +++--- suggestions/suggestions.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/info/info.py b/info/info.py index 851beea..a3a2038 100644 --- a/info/info.py +++ b/info/info.py @@ -79,8 +79,8 @@ class Info(commands.Cog): ) ) if guild.icon: - data.set_author(name=guild.name, icon_url=str(guild.icon_url_as(format='png'))) - data.set_thumbnail(url=str(guild.icon_url_as(format='png'))) + data.set_author(name=guild.name, icon_url=str(guild.icon.replace(format='png'))) + data.set_thumbnail(url=str(guild.icon.replace(format='png'))) else: data.set_author(name=guild.name) else: @@ -260,7 +260,7 @@ class Info(commands.Cog): ) data.add_field(name=_("Nitro Boost:"), value=nitro_boost) if guild.splash: - data.set_image(url=str(guild.splash_url_as(format='png'))) + data.set_image(url=str(guild.splash.replace(format='png'))) data.set_footer(text=joined_on) await ctx.send(embed=data) diff --git a/suggestions/suggestions.py b/suggestions/suggestions.py index e1d5f86..8e5c0df 100644 --- a/suggestions/suggestions.py +++ b/suggestions/suggestions.py @@ -190,7 +190,7 @@ class Suggestions(commands.Cog): approved = "Approved" if approve else "Denied" embed.title = f"Suggestion {approved} (#{suggestion_id})" footer = [f"{approved} by {self.check_discrim(author)} ({author.id}", - author.avatar.url_as(format="png", size=512)] + author.avatar.replace(format="png", size=512)] embed.set_footer( text=footer[0], icon_url=footer[1] @@ -464,7 +464,7 @@ class Suggestions(commands.Cog): embed.title = f"Suggestion {approved} (#{suggestion_id})" footer = [f"{approved} by {self.check_discrim(author)} ({author.id}", - author.avatar.url_as(format="png", size=512)] + author.avatar.replace(format="png", size=512)] embed.set_footer( text=footer[0], icon_url=footer[1]