---
title: /quarantine
description: Strip a member's roles and isolate them with a quarantine role.
---
## Overview

`/quarantine` isolates a member by removing their roles and applying a quarantine role, then lets you restore them later.

## Required Permissions

- **Moderate Members**

## Subcommands

### add

| Option | Required | Description |
|--------|----------|-------------|
| `user` | Yes | Member to quarantine |
| `strip_roles` | No | Remove the member's other roles first (default: on) |
| `quarantine_role` | No | Role to use for quarantine, if you want to set or change it |

### remove

| Option | Required | Description |
|--------|----------|-------------|
| `user` | Yes | Member to release from quarantine |
| `reapply_roles` | No | Restore the roles they had before being quarantined |

## Behavior

- BetterAntiSpam creates the quarantine role automatically if one isn't set.
- If `strip_roles` is on, the member's other roles are saved before removal so they can be restored later.
- If the quarantine role or the member's saved roles carry risky permissions, BetterAntiSpam shows a warning and asks for confirmation before proceeding.
- `remove` without `reapply_roles` only removes the quarantine role. With `reapply_roles`, BetterAntiSpam restores the member's previously saved roles and asks for confirmation first if any of them look risky.
- A case is created for each quarantine action and logged to the quarantine log category if configured.
- The quarantine role is shared with `/antispam settings`, `/antinuke settings`, and `/antiraid settings` when quarantine is selected as their punishment.