> 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/kick.md).

# $kick

Kicks a user from the server.

### Usage

```php
$kick[guildID;userID;reason]
```

This function has three params.

| Param   | Description                       | Type      | Required |
| ------- | --------------------------------- | --------- | -------- |
| guildID | The server to kick the user from. | Snowflake | Yes      |
| userID  | The user to kick.                 | Snowflake | Yes      |
| reason  | The reason for kicking this user. | String    | No       |

### Example

```javascript
bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$onlyIf[$hasPerm[$guildID;$authorID;kickmembers]==true;You're missing the 'kick' permission!]
$kick[$guildID;$mentioned[1];$noMentionMessage]` //Kicks the mentioned user
})
```
