---
title: /access unlock
description: Submit a recovery key to regain access to restricted commands.
---
## Overview

`/access unlock` lets a member submit a recovery key to lift a command restriction and regain access to BetterAntiSpam commands. Server staff generate the key with `/recoverykey settings`.

## Required Permissions

- None. Any member can run this command.

## Subcommands

### unlock

| Option | Required | Description |
|--------|----------|-------------|
| `key` | Yes | Recovery key to submit |

## Behavior

- Only works if command restriction and recovery keys are enabled and configured with `/recoverykey settings`.
- Entering the wrong key counts as a failed attempt. After too many failed attempts within the configured window, BetterAntiSpam temporarily blocks further tries.
- A correct key adds the member to the list of users allowed to run restricted commands.
- If the server has recovery key role assignment enabled, BetterAntiSpam also grants the member its highest assignable staff role.
- If the key has a limited number of uses, each successful unlock reduces the remaining count.
- Doesn't work in direct messages.