Skip to content

Commit

Permalink
add timestamp to message deletion logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixrec committed Nov 20, 2023
1 parent 009cbe6 commit 6752538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Izzy-Moonbot/EventListeners/MessageListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <t:{message.Timestamp.ToUnixTimeSeconds()}> by {DiscordHelper.DisplayName(author, defaultGuild)} ({author.Username}/{author.Id}) **deleted**";

if (channel is null)
logMessageTemplate += $" in unknown channel {channelId}:\n";
Expand Down

0 comments on commit 6752538

Please sign in to comment.