# Ban Member

**Introduction**&#x20;

This step enforces a ban on a specified member in a guild.

**Configuration**

1. **Guild**: The guild from which the user will be banned. This field is required to ensure the action is applied to the correct server.
2. **User**: The user to be banned. This field is required to identify the target of the ban action.
3. **Reason**: (Optional) Provide a reason for the ban. Maximum length is 512 characters.
4. **Delete Message History**: (Optional) Specify the duration (in milliseconds) for which the member's message history should be deleted. The range is from 0 (no deletion) to 7 days.

**Usage**&#x20;

Essential for maintaining community standards and enforcing guild rules, by removing members who violate guidelines.

**Permissions**

* Requires the "Ban Members" permission to execute this action.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flexy.bot/modules/discord/steps/ban-member.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
