Skip to content

$isNumber

$isNumber will check if the given argument is a number.

Usage

$isNumber[num]

Parameters

FieldTypeDescriptionRequired
numnumberArgument you want to check if its a number.true

Example(s)

This will return true as 255 is a valid number:

1
client.command({
2
name: "isNumber",
3
code: `
4
$isNumber[255]
5
`
6
});