From bb3e124d50f0d5d04ad02fb44919408ae265f7ea Mon Sep 17 00:00:00 2001 From: ixrec Date: Mon, 20 Nov 2023 00:58:54 +0000 Subject: [PATCH] add timestamp to message deletion logs --- Izzy-Moonbot/EventListeners/MessageListener.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Izzy-Moonbot/EventListeners/MessageListener.cs b/Izzy-Moonbot/EventListeners/MessageListener.cs index c71edd07..cbd82cb2 100644 --- a/Izzy-Moonbot/EventListeners/MessageListener.cs +++ b/Izzy-Moonbot/EventListeners/MessageListener.cs @@ -190,7 +190,7 @@ private async Task ProcessMessageDelete( if (author.Id == client.CurrentUser.Id) return; // Don't process self. if (author.IsBot) return; // Don't listen to bots - var logMessageTemplate = $"Message id {messageId} by {DiscordHelper.DisplayName(author, defaultGuild)} ({author.Username}/{author.Id}) **deleted**"; + var logMessageTemplate = $"Message id {messageId} originally posted on by {DiscordHelper.DisplayName(author, defaultGuild)} ({author.Username}/{author.Id}) **deleted**"; if (channel is null) logMessageTemplate += $" in unknown channel {channelId}:\n";