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

# Server Whitelist

> Restrict all server interactions to approved members only.

# Server Whitelist

> Restrict all server interactions to approved members only.

## What is the server whitelist?

When enabled, only whitelisted members can interact with the server. Non-whitelisted members who send messages or interact are automatically punished. Useful for private or invite-only communities.

## Enable / disable

<CodeGroup>
  ```bash Enable theme={null} theme={null}
  ;whitelist enable
  ```

  ```bash Disable theme={null} theme={null}
  ;whitelist disable
  ```
</CodeGroup>

## Add & remove members

<CodeGroup>
  ```bash Add theme={null} theme={null}
  ;whitelist add (@user)
  ```

  ```bash Remove theme={null} theme={null}
  ;whitelist remove (@user)
  ```

  ```bash Example theme={null} theme={null}
  ;whitelist add @wanderer
    ;whitelist remove @wanderer
  ```
</CodeGroup>

## View whitelisted members

```bash theme={null} theme={null}
;whitelist list
```

## Set punishment

<Tabs>
  <Tab title="Syntax">
    ```bash theme={null} theme={null}
    ;whitelist punishment (ban|kick|dm)
    ```
  </Tab>

  <Tab title="Example">
    ```bash theme={null} theme={null}
    ;whitelist punishment kick
    ```
  </Tab>

  <Tab title="Punishment types">
    * `ban` — permanently bans the non-whitelisted member
    * `kick` — removes them from the server
    * `dm` — sends the denial message only (no removal)
  </Tab>
</Tabs>

## Set denial message

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;whitelist message (text or embed code)
  ```

  ```bash Example — plain text theme={null} theme={null}
  ;whitelist message You are not whitelisted in this server.
  ```

  ```bash Example — embed theme={null} theme={null}
  ;whitelist message {embed}$v{description: Sorry {user.mention}, this server is invite-only.}
  ```
</CodeGroup>

## Check status

```bash theme={null} theme={null}
;whitelist
```

Shows whether the whitelist is enabled, current punishment, denial message, and total whitelisted members.
