> For the complete documentation index, see [llms.txt](https://discortics.com/llms.txt). A consolidated single-file corpus is available at [llms-full.txt](https://discortics.com/llms-full.txt). Markdown versions of documentation and comparison pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discortics.com/guides/vanity-roles.md).

# Vanity Roles

When a member adds your text to their custom status, Discortics gives them your roles.

> [!IMPORTANT]
> Vanity Roles needs a **Custom** bot, because tracking statuses requires Discord's Presences feature.

## Before you begin

- You need **Manage Server**.
- Discortics needs **Manage Roles** and a role above the reward roles.
- In the log channel, Discortics needs **View Channel**, **Send Messages**, and **Embed Links**.

## Set up Vanity Roles

### Dashboard Setup

1. Open **Dashboard → Settings** and expand **Vanity Roles**.
2. Turn on the toggle.
3. Optional: choose reward roles. Leave empty to use announcements only.
4. Optional: enter a **Status Text / Watch Keyword**. If it's blank, Discortics looks for your server's vanity invite code.
5. Optional: select a **Log Channel** for announcements.
6. Save with the save bar.

### Discord Command Setup

1. Run `/settings vanity`.
2. Use **Roles** to select reward roles.
3. Use **Keyword** to set your text, or leave it blank for your vanity code.
4. Use **Channel** to pick the log channel.
5. Check that the status button shows Vanity Roles as enabled.

## How matching works

- Keywords aren't case-sensitive, so `myserver.gg` matches `MyServer.GG`.
- The text can appear anywhere in the status. To cover several variations, use a shared part such as `myserver`.

| The member's status                  | What happens      |
| ------------------------------------ | ----------------- |
| Contains your text                   | Roles are given   |
| Changes to other text without it     | Roles are removed |
| Empty, hidden, offline, or invisible | Roles are kept    |

## Limits

| Feature                      | Public | Prime | Custom |
| ---------------------------- | -----: | ----: | -----: |
| Vanity roles per server      |      0 |     0 |     25 |
| Custom status keyword        |     ❌ |    ❌ |     ✅ |
| Custom announcement messages |     ❌ |    ❌ |     ✅ |

## Message variables

| Variable                 | What it shows             |
| ------------------------ | ------------------------- |
| `{{user.mention}}`       | Mentions the member       |
| `{{user.name}}`          | Username                  |
| `{{user.avatarURL}}`     | Profile picture URL       |
| `{{server.name}}`        | Server name               |
| `{{server.memberCount}}` | Member count              |
| `{{vanity.statusText}}`  | The keyword being tracked |
| `{{vanity.status}}`      | The member's full status  |

Role and everyone mentions are off by default. Turn them on per template in the Dashboard.

## Commands

| Command            | What it does                        | Permission    |
| ------------------ | ----------------------------------- | ------------- |
| `/settings vanity` | Set reward roles, keyword, and logs | Manage Server |

Compare plans and capabilities on the [Discord Vanity Roles overview](/features/vanity-roles).
