Skip to content

$isInteger

$isInteger will check if the given number is an integer or not.

Usage

$isInteger[number]

Parameters

FieldTypeDescriptionRequired
numbernumberNumber you want to check if its an number or not.true

Example(s)

This checks if your message contains an integer and returns true or false:

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