fix: more avatar-related fixes
This commit is contained in:
parent
c4a1d22714
commit
a7a38433c6
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue