private async Task LogMessageUpdated(Cacheable <IMessage, ulong> cachedMessage, SocketMessage newMessage, ISocketMessageChannel channel) { var message = cachedMessage.Value; if (message.Content == null || IgnoredChannelIds.Contains(channel.Id) || message.Content.Equals(newMessage.Content)) { return; } if (newMessage.Equals($"*{cachedMessage}*")) { return; } StringBuilder builder = new StringBuilder(); builder.AppendLine($"**{message.Author}'s** message in <#{channel.Id}> was updated."); builder.AppendLine($"**Old content**: {message}"); builder.AppendLine($"**New content**: {newMessage}"); await SendAudit(builder.ToString(), ":pencil:"); }