$isBoolean
Returns `true` if the input content is a boolean. Otherwise, the function returns `false`.

FUNCTION USAGE

    $isBoolean[input]

Properties:

input - The content to check for booleans.

Booleans:

    true
    false
    yes
    no
    on
    off

Example 1: Returns true if the command author is boosting the server.

1
bot.Command({
2
name: "boosting",
3
code: `
4
$isBoosting
5
`
6
})
Copied!

Example 2: Returns true if the specific user is boosting the server

1
bot.Command({
2
name: "boosting",
3
code: `
4
$isBoosting[5397459387459384533]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link