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

# Moderation Commands: Ban, Kick, Warn, Mute, and More

> Reference for Solara's 10 moderation commands: ban, kick, mute, warn, purge, lock, unlock, slowmode, cases, and unban with usage examples and options.

Solara's moderation commands let server staff take action quickly and consistently. All actions are logged automatically when log channels are configured.

### /ban

Permanently or temporarily ban a user from the server. Include a duration to issue a temporary ban — omitting it makes the ban permanent. Solara logs the action with the reason you provide.

```bash theme={null}
/ban @username 7d Spamming in general
```

<Tip>Duration accepts shorthand like `24h`, `7d`, or `30d`. Omit the duration entirely for a permanent ban.</Tip>

***

### /kick

Remove a user from the server without banning them. The user can rejoin if they have an invite link. Use this for minor infractions where a warning isn't sufficient but a ban would be excessive.

```bash theme={null}
/kick @username Breaking channel rules
```

***

### /mute

Timeout a user using Discord's native timeout feature, preventing them from sending messages, reacting, or joining voice channels for the specified duration.

```bash theme={null}
/mute @username 1h Repeated rule violations
```

<Note>This command uses Discord's built-in timeout system. The user's messages remain visible but they cannot interact until the timeout expires.</Note>

***

### /warn

Issue a formal warning to a user. Warnings are tracked in Solara's case system so you can build a history over time. Use `/cases` to review all warnings for a given user.

```bash theme={null}
/warn @username Using offensive language
```

<Tip>Set up escalating punishments in the dashboard so repeated warnings automatically trigger mutes or bans.</Tip>

***

### /purge

Bulk delete messages in a channel. You can optionally filter by a specific user to delete only their messages. Discord limits bulk deletion to messages under 14 days old.

```bash theme={null}
/purge 50
/purge 50 @user
```

<Note>Messages older than 14 days cannot be bulk deleted due to Discord API limits. Solara will skip those messages and report how many were removed.</Note>

***

### /lock

Lock a channel so only staff can send messages. Use this during raids, emergencies, or when a conversation needs to pause. Members can still read the channel.

```bash theme={null}
/lock #general Temporary lockdown during raid
```

***

### /unlock

Unlock a previously locked channel and restore normal message permissions for members.

```bash theme={null}
/unlock #general All clear, lockdown lifted
```

***

### /slowmode

Set a cooldown between messages in a channel, given in seconds. This reduces spam without fully locking the channel. Set the value to `0` to remove slowmode.

```bash theme={null}
/slowmode 30
/slowmode 0
```

<Tip>Use a value of `5`–`10` seconds in busy channels to keep conversations readable without frustrating active members.</Tip>

***

### /cases

View the full moderation history for a specific user, including all warnings, mutes, kicks, and bans. Each case includes a timestamp, moderator, and reason.

```bash theme={null}
/cases @username
```

***

### /unban

Revoke a ban and allow a previously banned user back to the server. You will need their Discord user ID if they are no longer in the server.

```bash theme={null}
/unban 123456789012345678
```
