ResolveColor
Function: resolveColor()
resolveColor(color): string | number
Defined in: tagscript-plugin-discord/src/lib/Utils/resolveColor.ts:49
Resolves a colour to the integer Discord expects. Unresolvable input is returned untouched instead of throwing, so one bad colour in a template does not end the render.
Accepts a name from Colors, Random, #ed4245, 0xed4245, ed4245 or a decimal number.
Parameters
color
string | number
The colour to resolve
Returns
string | number
The colour as a number, or the input when it resolves to nothing