v5.0.0
$isValidHex
Checks if given hex or decimal is valid
1
$isValidHex[hex/int]
Copied!
Now lets use it
1
bot.command({
2
name: "hex",
3
code: `$isValidHex[00ff00]` //returns true
4
})
5
​
6
bot.command({
7
name: "hex",
8
code: `$isValidHex[0]` //returns false
9
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub