From 2c89456e62482c49cded93355a3c24b3bc300995 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 11 Aug 2023 19:12:27 -0400 Subject: [PATCH] fix: default avatars no longer cause errors --- suggestions/suggestions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/suggestions/suggestions.py b/suggestions/suggestions.py index 8e5c0df..1149f06 100644 --- a/suggestions/suggestions.py +++ b/suggestions/suggestions.py @@ -85,8 +85,8 @@ class Suggestions(commands.Cog): ) embed = discord.Embed(color=await ctx.embed_colour(), description=suggestion) footer = [f"Suggested by {self.check_discrim(ctx.author)} ({ctx.author.id})", - ctx.author.avatar.url] - author = [f"{ctx.author.display_name}", ctx.author.avatar.url] + ctx.author.display_avatar.url] + author = [f"{ctx.author.display_name}", ctx.author.display_avatar.url] embed.set_footer( text=footer[0], icon_url=footer[1] @@ -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.replace(format="png", size=512)] + author.display_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.replace(format="png", size=512)] + author.display_avatar.replace(format="png", size=512)] embed.set_footer( text=footer[0], icon_url=footer[1]