$isBot
Returns `true` if the given ID is a bot. If the given ID is a human, the bot will return `false`.

FUNCTION USAGE

  • $isBot
  • $isBot[]
  • $isBot[userID]

Properties:

[] - Leave brackets empty to return if the command author is a bot. Same as no brackets. userID - The ID of the user/bot.

Example 1: Returns true if the command author is a bot.

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

Example 2: Returns true if the specific user is a bot

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