$isValidHex
$isValidHex
will check if the given hex / decimal color is valid.
Usage
$isValidHex[colorResolver]
Parameters
Field | Type | Description | Required |
---|---|---|---|
colorResolver | string, number | Hex / decimal color string. | true |
Example(s)
This will return true
as #30dbd8
is a valid hex color:
1client.command({2 name: "isValidHex",3 code: `4 $isValidHex[#30dbd8]5 `6});
This will return true
as well as 80
is a valid hexadecimal color:
1client.command({2 name: "isValidHex",3 code: `4 $isValidHex[80]5 `6});