$isBot

Checks whether the user is a bot.

Usage

$isBot[userID]

This function has one param.

ParamDescriptionTypeRequired

userID

The user to check.

Snowflake

Yes

Examples

Example #1

bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$isBot[$authorID]` //Returns whether or not the author is a bot
})

Example #2

bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$isBot[$mentioned[1]]` //Returns whether or not the mentioned user is a bot
})

Last updated