.sclr will now correctly show the color without alpha prefixed

This commit is contained in:
Toastie 2024-12-12 19:43:33 +13:00
parent 4283a939b7
commit e05792639c
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

View file

@ -13,9 +13,9 @@ public partial class Utility
public async Task ServerColorsShow() public async Task ServerColorsShow()
{ {
var colors = _service.GetColors(ctx.Guild.Id); var colors = _service.GetColors(ctx.Guild.Id);
var okHex = colors?.Ok?.RawValue.ToString("X8"); var okHex = colors?.Ok?.RawValue.ToString("x6");
var warnHex = colors?.Warn?.RawValue.ToString("X8"); var warnHex = colors?.Warn?.RawValue.ToString("x6");
var errHex = colors?.Error?.RawValue.ToString("X8"); var errHex = colors?.Error?.RawValue.ToString("x6");
EmbedBuilder[] ebs = EmbedBuilder[] ebs =
[ [
CreateEmbed() CreateEmbed()