---
title: "Ban"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.utilbot.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Ban

## Command

```txt
/mod ban <user> [delete_message_days] [reason]
```

## Description

Bans a Member.

## Permission

`BAN_MEMBERS`

## Arguments

| Name | Type | Description | Sample Data |
| ---- | ---- | ----------- | ----------- |
| user | User | A user (ID should also work) | @HerrTxbias |
| delete_message_days | Choice (0-7) | Number of days of the user's messages to delete | 4 Days |
| reason | String | The ban reason | Writing rude things |

## Sample Response

![Image](https://cdn.utilbot.co/2021-05-28_b0cb29be-4a31-47f1-a020-340947540baf.png)

Source: https://docs.utilbot.co/commands/moderators/ban/index.mdx
