From 0f82ddcf7b8d55cf8d5653dceb89fc236e35dcd9 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Fri, 24 May 2024 03:04:40 -0400 Subject: [PATCH] fix(logger): fixed embed timestamp --- logger/logger.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/logger/logger.py b/logger/logger.py index ce580a2..9aaaf3d 100644 --- a/logger/logger.py +++ b/logger/logger.py @@ -1,4 +1,4 @@ -import time +from datetime import UTC, datetime import discord from redbot.core import commands @@ -43,10 +43,9 @@ class Logger(commands.Cog): if c: channel = self.bot.get_channel(c) if channel: - embed = discord.Embed(color=discord.Color.from_str(value="#ff470f")) + 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.description = bold(text=f"Message sent by {author.mention} deleted in {payload.cached_message.channel.mention}") + content embed.set_footer(text=f"Author: {author.id} | Message ID: {payload.message_id}") - embed.timestamp = time.time() await channel.send(embed=embed)