[JSON] Fix incorrect embed color output

This commit is contained in:
Tyrrrz
2020-10-24 17:45:54 +03:00
parent eda5b21684
commit 0763a99765
2 changed files with 4 additions and 3 deletions

View File

@@ -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}";
}
}