mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-01 04:33:41 +00:00
[JSON] Fix incorrect embed color output
This commit is contained in:
@@ -9,5 +9,7 @@ namespace DiscordChatExporter.Domain.Internal.Extensions
|
||||
public static Color ResetAlpha(this Color color) => color.WithAlpha(255);
|
||||
|
||||
public static int ToRgb(this Color color) => color.ToArgb() & 0xffffff;
|
||||
|
||||
public static string ToHex(this Color color) => $"#{color.R:X2}{color.G:X2}{color.B:X2}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user