fix: default avatars no longer cause errors
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s
This commit is contained in:
parent
742598c585
commit
2c89456e62
1 changed files with 4 additions and 4 deletions
|
@ -85,8 +85,8 @@ class Suggestions(commands.Cog):
|
||||||
)
|
)
|
||||||
embed = discord.Embed(color=await ctx.embed_colour(), description=suggestion)
|
embed = discord.Embed(color=await ctx.embed_colour(), description=suggestion)
|
||||||
footer = [f"Suggested by {self.check_discrim(ctx.author)} ({ctx.author.id})",
|
footer = [f"Suggested by {self.check_discrim(ctx.author)} ({ctx.author.id})",
|
||||||
ctx.author.avatar.url]
|
ctx.author.display_avatar.url]
|
||||||
author = [f"{ctx.author.display_name}", ctx.author.avatar.url]
|
author = [f"{ctx.author.display_name}", ctx.author.display_avatar.url]
|
||||||
embed.set_footer(
|
embed.set_footer(
|
||||||
text=footer[0],
|
text=footer[0],
|
||||||
icon_url=footer[1]
|
icon_url=footer[1]
|
||||||
|
@ -190,7 +190,7 @@ class Suggestions(commands.Cog):
|
||||||
approved = "Approved" if approve else "Denied"
|
approved = "Approved" if approve else "Denied"
|
||||||
embed.title = f"Suggestion {approved} (#{suggestion_id})"
|
embed.title = f"Suggestion {approved} (#{suggestion_id})"
|
||||||
footer = [f"{approved} by {self.check_discrim(author)} ({author.id}",
|
footer = [f"{approved} by {self.check_discrim(author)} ({author.id}",
|
||||||
author.avatar.replace(format="png", size=512)]
|
author.display_avatar.replace(format="png", size=512)]
|
||||||
embed.set_footer(
|
embed.set_footer(
|
||||||
text=footer[0],
|
text=footer[0],
|
||||||
icon_url=footer[1]
|
icon_url=footer[1]
|
||||||
|
@ -464,7 +464,7 @@ class Suggestions(commands.Cog):
|
||||||
|
|
||||||
embed.title = f"Suggestion {approved} (#{suggestion_id})"
|
embed.title = f"Suggestion {approved} (#{suggestion_id})"
|
||||||
footer = [f"{approved} by {self.check_discrim(author)} ({author.id}",
|
footer = [f"{approved} by {self.check_discrim(author)} ({author.id}",
|
||||||
author.avatar.replace(format="png", size=512)]
|
author.display_avatar.replace(format="png", size=512)]
|
||||||
embed.set_footer(
|
embed.set_footer(
|
||||||
text=footer[0],
|
text=footer[0],
|
||||||
icon_url=footer[1]
|
icon_url=footer[1]
|
||||||
|
|
Loading…
Reference in a new issue