> For the complete documentation index, see [llms.txt](https://dbd-ts.gitbook.io/dbdts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dbd-ts.gitbook.io/dbdts/functions/isbot.md).

# $isBot

Checks whether the user is a bot.

### Usage

```php
$isBot[userID]
```

This function has one param.

| Param  | Description        | Type      | Required |
| ------ | ------------------ | --------- | -------- |
| userID | The user to check. | Snowflake | Yes      |

### Examples

**Example #1**

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

**Example #2**

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