mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-31 14:58:22 -04:00
[JSON] Add embed color (#403)
This commit is contained in:
parent
2a432c0ed2
commit
c4007d4a80
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.IO;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
using DiscordChatExporter.Domain.Discord.Models;
|
||||
|
@ -114,6 +115,9 @@ namespace DiscordChatExporter.Domain.Exporting.Writers
|
|||
_writer.WriteString("timestamp", embed.Timestamp);
|
||||
_writer.WriteString("description", FormatMarkdown(embed.Description));
|
||||
|
||||
if (embed.Color != null)
|
||||
_writer.WriteString("color", ColorTranslator.ToHtml(embed.Color.Value));
|
||||
|
||||
if (embed.Author != null)
|
||||
await WriteEmbedAuthorAsync(embed.Author);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue