From 6d0d45736d57bc211d98a8128bc9588992d44109 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Fri, 24 May 2024 03:09:51 -0400 Subject: [PATCH] fix(logger): just include author username in the author field, also include the guild icon in the footer --- logger/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logger/logger.py b/logger/logger.py index 8c70246..3effb8a 100644 --- a/logger/logger.py +++ b/logger/logger.py @@ -44,8 +44,8 @@ class Logger(commands.Cog): channel = self.bot.get_channel(c) if channel: embed = discord.Embed(color=discord.Color.from_str(value="#ff470f"), timestamp=datetime.now(tz=UTC)) - embed.set_author(name=f"{author.display_name} - Deleted Message", icon_url=author.display_avatar.url) + embed.set_author(name=f"{author.name}", icon_url=author.display_avatar.url) embed.description = bold(text=f"Message sent by {author.mention} deleted in {payload.cached_message.channel.mention}\n", escape_formatting=False) + content - embed.set_footer(text=f"Author: {author.id} | Message ID: {payload.message_id}") + embed.set_footer(text=f"Author: {author.id} | Message ID: {payload.message_id}", icon_url=guild.icon.url) await channel.send(embed=embed)