Skip to content

Commit

Permalink
move the >24 hour edit warning from modchat to bot-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixrec committed Jul 23, 2024
1 parent b01503f commit 2bf6204
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 @@ -130,7 +130,7 @@ private async Task ProcessMessageUpdate(
if ((newMessage.CreatedAt.AddHours(24) < DateTimeOffset.UtcNow) && !isMod)
{
var oldEditWarning = $":warning: >24-hour-old message edit by <@{author.Id}> ({author.Id}) detected: {newMessage.GetJumpUrl()}";
await _modLogger.CreateModLog(defaultGuild).SetContent(oldEditWarning).SetFileLogContent(oldEditWarning).Send();
await logChannel.SendMessageAsync(oldEditWarning, allowedMentions: AllowedMentions.None);
}

var logMessageTemplate =
Expand Down

0 comments on commit 2bf6204

Please sign in to comment.