Tagscript

ResolveColor

TagScript


Function: resolveColor()

resolveColor(color): string | number

Defined in: tagscript-plugin-discord/src/lib/Utils/resolveColor.ts:9

Resolves a color to a number. This function doesn't throw for invalid colors but returns the input

Parameters

color

string

The color to resolve

Returns

string | number

On this page