diff --git a/DiscordChatExporter.Core/Exporting/Writers/JsonMessageWriter.cs b/DiscordChatExporter.Core/Exporting/Writers/JsonMessageWriter.cs index 1da2b52..0ec3428 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/JsonMessageWriter.cs +++ b/DiscordChatExporter.Core/Exporting/Writers/JsonMessageWriter.cs @@ -230,6 +230,7 @@ namespace DiscordChatExporter.Core.Exporting.Writers _writer.WriteString("name", message.Author.Name); _writer.WriteString("discriminator", message.Author.DiscriminatorFormatted); _writer.WriteString("nickname", Context.TryGetMember(message.Author.Id)?.Nick ?? message.Author.Name); + _writer.WriteString("color", Context.TryGetUserColor(message.Author.Id)?.ToHex()); _writer.WriteBoolean("isBot", message.Author.IsBot); _writer.WriteString("avatarUrl", await Context.ResolveMediaUrlAsync(message.Author.AvatarUrl)); _writer.WriteEndObject(); @@ -300,4 +301,4 @@ namespace DiscordChatExporter.Core.Exporting.Writers await base.DisposeAsync(); } } -} \ No newline at end of file +}