Image & Canvas
hexToDecimal
$hexToDecimal — Converts a six-digit hexadecimal color, with or without #, into a decimal integer.
Converts a six-digit hexadecimal color, with or without #, into a decimal integer.
Syntax
$hexToDecimal[hex]
Parameters
- hex (String, required) — Six-digit hexadecimal color
Return Value
- String.
Usage
$hexToDecimal[hex] → result
Example
$sendMessage[$hexToDecimal[hex]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.