diff --git a/DiscordChatExporter/Services/ExportService.cs b/DiscordChatExporter/Services/ExportService.cs index 67e8e692..f578653d 100644 --- a/DiscordChatExporter/Services/ExportService.cs +++ b/DiscordChatExporter/Services/ExportService.cs @@ -226,7 +226,7 @@ namespace DiscordChatExporter.Services // New lines content = content.Replace("\n", Environment.NewLine); - // User mentions (<@id>) + // User mentions (<@id> and <@!id>) foreach (var mentionedUser in message.MentionedUsers) content = Regex.Replace(content, $"<@!?{mentionedUser.Id}>", $"@{mentionedUser}"); @@ -284,7 +284,7 @@ namespace DiscordChatExporter.Services // Meta mentions (@here) content = content.Replace("@here", "@here"); - // User mentions (<@id>) + // User mentions (<@id> and <@!id>) foreach (var mentionedUser in message.MentionedUsers) { content = Regex.Replace(content, $"<@!?{mentionedUser.Id}>",