fix: more avatar-related fixes

This commit is contained in:
Seaswimmer 2023-08-07 20:15:31 -04:00
parent c4a1d22714
commit a7a38433c6
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8
2 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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]