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

# Moderation commands

> Keep your server safe with Infusion's moderation tools

## Overview

Infusion provides comprehensive moderation commands to help you maintain a safe and welcoming environment in your Discord server. All moderation commands require appropriate permissions.

## Basic moderation

### Kick

Remove a member from your server. They can rejoin with a new invite.

```
/kick <user> [reason]
```

**Parameters:**

* `user` - The member to kick from the server.
* `reason` - Optional reason for the kick (shown in audit log).

**Required permissions:** Kick Members

**Example:**

```
/kick @user Spamming in channels
```

### Ban

Permanently ban a member from your server.

```
/ban <user> [reason] [delete_messages]
```

**Parameters:**

* `user` - The member to ban from the server.
* `reason` - Optional reason for the ban (shown in audit log).
* `delete_messages` - Optional number of days of messages to delete (0-7).

**Required permissions:** Ban Members

**Example:**

```
/ban @user Repeated rule violations delete_messages:1
```

### Unban

Remove a ban from a previously banned user.

```
/unban <user_id> [reason]
```

**Parameters:**

* `user_id` - The ID of the user to unban.
* `reason` - Optional reason for the unban.

**Required permissions:** Ban Members

**Example:**

```
/unban 123456789012345678 Appeal accepted
```

### Timeout

Temporarily prevent a member from sending messages or joining voice channels.

```
/timeout <user> <duration> [reason]
```

**Parameters:**

* `user` - The member to timeout.
* `duration` - How long to timeout (e.g., 10m, 1h, 1d).
* `reason` - Optional reason for the timeout.

**Required permissions:** Timeout Members

**Example:**

```
/timeout @user 1h Excessive caps lock
```

### Remove timeout

Remove an active timeout from a member.

```
/untimeout <user> [reason]
```

**Parameters:**

* `user` - The member to remove timeout from.
* `reason` - Optional reason for removing the timeout.

**Required permissions:** Timeout Members

## Warning system

### Warn

Issue a warning to a member. Warnings are tracked and can trigger automated actions.

```
/warn <user> <reason>
```

**Parameters:**

* `user` - The member to warn.
* `reason` - Reason for the warning.

**Required permissions:** Manage Messages

**Example:**

```
/warn @user Please keep discussions on topic
```

### Warnings

View all warnings for a specific member.

```
/warnings <user>
```

**Parameters:**

* `user` - The member to view warnings for.

**Required permissions:** Manage Messages

### Remove warning

Remove a specific warning from a member's record.

```
/removewarn <warning_id>
```

**Parameters:**

* `warning_id` - The ID of the warning to remove.

**Required permissions:** Manage Messages

### Clear warnings

Clear all warnings for a specific member.

```
/clearwarns <user>
```

**Parameters:**

* `user` - The member to clear warnings for.

**Required permissions:** Manage Messages

## Message management

### Purge

Bulk delete messages from a channel.

```
/purge <amount> [user] [filter]
```

**Parameters:**

* `amount` - Number of messages to delete (1-100).
* `user` - Optional user to delete messages from.
* `filter` - Optional filter (bots, embeds, images, links).

**Required permissions:** Manage Messages

**Example:**

```
/purge 50 user:@user
/purge 20 filter:bots
```

### Slowmode

Set a slowmode delay for a channel.

```
/slowmode <duration> [channel]
```

**Parameters:**

* `duration` - Delay between messages (e.g., 5s, 1m).
* `channel` - Optional channel to apply slowmode to (defaults to current).

**Required permissions:** Manage Channels

**Example:**

```
/slowmode 10s
```

## Lock and unlock

### Lock

Lock a channel to prevent members from sending messages.

```
/lock [channel] [reason]
```

**Parameters:**

* `channel` - Optional channel to lock (defaults to current).
* `reason` - Optional reason for locking.

**Required permissions:** Manage Channels

### Unlock

Unlock a previously locked channel.

```
/unlock [channel] [reason]
```

**Parameters:**

* `channel` - Optional channel to unlock (defaults to current).
* `reason` - Optional reason for unlocking.

**Required permissions:** Manage Channels

## Moderation logs

All moderation actions are automatically logged and can be viewed by server moderators. Configure your moderation log channel in the server settings.

<Tip>
  Set up a dedicated moderation log channel to keep track of all moderation actions in your server.
</Tip>
