---
title: /invitelock settings
description: Temporarily restrict invite creation using Discord's server incident tools.
---
## Overview

`/invitelock settings` opens an interactive dashboard for locking invite creation, using Discord's built-in server incident feature. Useful when you need to stop new invite links from being created during a raid or incident.

## Required Permissions

- **Manage Server**

## Subcommands

### settings

No options. Running the command opens a dashboard with Lock and Unlock controls.

## Dashboard settings

The dashboard has four controls:

- **Lock now**: locks invite creation immediately for the selected duration.
- **Unlock now**: removes the lock immediately.
- **Duration**: choose 1 hour, 6 hours, 24 hours (default), 7 days, or forever, or enter a custom duration.
- **Auto re-lock**: when on (default), BetterAntiSpam automatically restores the lock if Discord's own incident window expires before you manually unlock it.

## Behavior

- Locking and unlocking apply through Discord's native server incident system, the same mechanism behind the "invite lockdown" option in Discord's own security settings.