$isValidHex

Checks whether the given color hex is valid or not.

🧙‍♂️ “true” means the color hex is valid, “false” means it isn’t.

Syntax

$isValidHex[Color hex]

Parameters

  • Color hex (Type: String || Flag: Emptiable): The color hex to check.

Example

$nomention
$isValidHex[$message[1]]

example