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]