diff --git a/Modules/ModLogs/ModLogs.cs b/Modules/ModLogs/ModLogs.cs index 7c3d5eb..b5f1906 100644 --- a/Modules/ModLogs/ModLogs.cs +++ b/Modules/ModLogs/ModLogs.cs @@ -8,6 +8,7 @@ namespace RegexBot.Modules.ModLogs; [RegexbotModule] internal partial class ModLogs : RegexbotModule { // TODO consider resurrecting 2.x idea of logging actions to db, making it searchable? + // TODO more robust channel filtering. define channels in config array, add check to it out here. public ModLogs(RegexbotClient bot) : base(bot) { // TODO missing logging features: joins, leaves, user edits (nick/username/discr) diff --git a/Modules/ModLogs/ModLogs_Messages.cs b/Modules/ModLogs/ModLogs_Messages.cs index 1c07284..70e9e1a 100644 --- a/Modules/ModLogs/ModLogs_Messages.cs +++ b/Modules/ModLogs/ModLogs_Messages.cs @@ -31,7 +31,7 @@ internal partial class ModLogs { var reportEmbed = new EmbedBuilder() .WithTitle("Message deleted") .WithCurrentTimestamp() - .WithFooter($"User ID: {(cachedMsg == null ? "Unknown" : cachedMsg.AuthorId)}"); + .WithFooter($"Message ID: {argMsg.Id}"); if (cachedMsg != null) { if (cachedMsg.Content == null) { @@ -80,7 +80,7 @@ internal partial class ModLogs { var reportEmbed = new EmbedBuilder() .WithTitle("Message edited") .WithCurrentTimestamp() - .WithFooter($"User ID: {newMsg.Author.Id}"); + .WithFooter($"Message ID: {newMsg.Id}"); reportEmbed.Author = new EmbedAuthorBuilder() { Name = $"{newMsg.Author.Username}#{newMsg.Author.Discriminator}", @@ -138,7 +138,6 @@ internal partial class ModLogs { contextStr.AppendLine($"User: {userDisplay}"); contextStr.AppendLine($"Channel: <#{channel.Id}> (#{channel.Name})"); contextStr.AppendLine(editLine); - contextStr.AppendLine($"Message ID: {msgId}"); e.AddField(new EmbedFieldBuilder() { Name = "Context",