IK1L1
(IK1L1)
#1
Hello everyone!
Quick question. I’ve tried searching it up but I couldn’t find anything.
When sending a message to Discord webhooks, I encountered this:
["color"] = 12698261
What color value is in numbers? I tried something like HEX but it errored:
["color"] = "#58b9ff"
Any help is appreciated. Thanks in advance!
1 Like
Hello,
Give a look at this website
There 2 type of color, decimal and hex.
Roblox use The decimal value.
1 Like
This is a decimal representation of a color. The easiest way to cast to this is to use a function like this in Roblox:
local function c3toDecimal(c3)
return tonumber(c3:ToHex(), 16)
end