mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-02 23:59:50 -04:00
[HTML] Adjust embed color to theme
This commit is contained in:
parent
0d2ae8b5db
commit
cc1bb924e7
5 changed files with 116 additions and 105 deletions
|
@ -123,7 +123,7 @@ namespace DiscordChatExporter.Core.Services
|
|||
// Get color
|
||||
var color = json["color"] != null
|
||||
? Color.FromArgb(json["color"]!.Value<int>()).ResetAlpha()
|
||||
: Color.FromArgb(79, 84, 92); // default color
|
||||
: default(Color?);
|
||||
|
||||
// Get author
|
||||
var author = json["author"] != null ? ParseEmbedAuthor(json["author"]!) : null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue