# Discord

https://docs.vamsys.co.uk/integrations/discord/

> Connect your Discord server to your Virtual Airline, choose what the vAMSYS bot posts and where, give pilots roles by rank, and use the bot's commands.

Last updated: 2026-11-27

**Where to find it:** Orwell › Communications › Discord

The vAMSYS bot connects your Discord server to your Virtual Airline. It posts your announcements, gives pilots roles for their rank, and names them in the server. Staff set it up on the Discord page in Orwell and in Discord itself.

You need the permission to change Discord settings. Staff who manage alerts or NOTAMs can see how Discord is set up, read-only, and never see the connection code. A Virtual Airline on trial is told Discord connects once the trial ends.

> **Caution:** During the vAMSYS v5.5 beta, v5.5 and v5 share your Discord settings, so a change here is a change in v5 too. Each version posts to Discord and changes roles for what is done in it, so nothing is sent twice. The scheduled Discord jobs (alert and NOTAM posts, daily statistics) stay with v5. See [How the vAMSYS v5.5 beta works](https://docs.vamsys.co.uk/getting-started/5-5-beta.md#limits).

## Connect your server {#connect}

You need the **Manage Server** permission in Discord. If you aren't sure, the person who created the server has it.

1. Open **Communications > Discord** in Orwell and select **Add to Discord**. Discord opens in a new tab: pick your server and approve what the bot may do. Don't untick any permission.
2. In your Discord server, type `/link` in any channel the bot can see. It asks for your connection code.
3. Copy the **Connection Code** from the page (**Copy Code**) and paste it in. Leave the Orwell page open: it updates by itself when the server is linked.

The code works like a password: anyone who holds it can connect your Virtual Airline to a server. It stops working once a server is connected, and isn't shown again until you disconnect. **Issue a New Code** makes any older code stop working.

Once connected, the page says **Connected to** your server's name and asks Discord whether the bot is still in it. **Check Again** repeats that. If Discord doesn't answer, the page says **Not checked**, and your saved choices stay as they are. You can only choose channels and roles after a successful check.

### The bot's permissions {#permissions}

The bot needs **Manage Roles**, **Manage Nicknames**, **Send Messages**, **Manage Messages** and **View Channel**. Its role must sit above all your pilot rank roles in Discord's role list, because it can't manage roles above its own or the server owner.

If you kick or ban the bot, your Virtual Airline is unlinked. Roles already given stay with members until you remove them in Discord.

## What gets posted {#posted}

**Screen: Discord (Orwell)**

- \[1] Menu: Orwell › Communications › Discord
- Header: Discord
  - \[2] Button: Rank Roles
- \[3] Panel: Alerts
  - Field: Channel
  - Field: Role to Mention
  - \[4] Button: Send a Test Post

Legend:

- 1: Discord in the Communications menu
- 2: Rank Roles
- 3: One row for each kind of post, with its channel and the role to mention
- 4: Send a Test Post

Each kind of post has a **Channel** and, for some, a **Role to Mention**. A row with no channel isn't posted. Press **Save Changes** to save.

| Row                          | Posted when                                                                                                                                    | Role to mention |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
| **Alerts**                   | An alert starts showing.                                                                                                                       | Yes             |
| **NOTAMs**                   | A NOTAM starts showing.                                                                                                                        | Yes             |
| **Activities**               | An activity starts showing.                                                                                                                    | Yes             |
| **Badge Awards**             | A pilot is awarded a badge.                                                                                                                    | Yes             |
| **PIREPs Needing Review**    | A flight report is filed that staff need to review. Use a staff-only channel.                                                                  | Yes             |
| **Ad-hoc Flight Requests**   | A pilot asks to fly an ad-hoc flight. With no channel, the PIREP review channel is used. Shown when your Virtual Airline uses Request to Book. | Yes             |
| **Flight Booked**            | A pilot books a flight.                                                                                                                        | No              |
| **Departures**               | A pilot takes off.                                                                                                                             | No              |
| **Landings**                 | A pilot lands.                                                                                                                                 | No              |
| **Daily Statistics, Full**   | The full daily summary, best in a staff channel.                                                                                               | No              |
| **Daily Statistics, Simple** | The short daily summary, better for a public channel.                                                                                          | No              |

**Send a Test Post** sends one plain message to the channel saved for that row, without mentioning its role, so you can check the bot can post there. It uses the saved channel, not one you picked but haven't saved.

Giving a channel to Alerts, NOTAMs or Activities marks what is already showing as posted, so connecting a channel doesn't post the backlog.

If a saved channel or role no longer exists in your server, the row says so. It is kept and shown by its ID until you choose another.

## Rank roles {#rank-roles}

**Rank Roles** in the page header maps each rank to the Discord roles the bot gives pilots of that rank. Create the roles in Discord first. A role can belong to one Virtual Airline only. Pilots who already hold a rank get a change at their next rank sync.

**Give Roles When a Pilot Joins** makes the bot name a pilot and give them their rank's roles when they join your server, if their vAMSYS account is linked to Discord. A pilot who hasn't linked is told how to. During the beta, pilots link Discord on vamsys.io, not on v5.5.

Pilots who didn't join through that can request their roles with a button in a channel you choose, see `/setup-role-button` below.

## Nicknames {#nicknames}

The bot names pilots with their name and Pilot ID. Set the format with `/config` in Discord:

| Format                        | Example              |
| ----------------------------- | -------------------- |
| **Name - Pilot ID** (default) | John Smith - ABC1234 |
| **Pilot ID - Name**           | ABC1234 - John Smith |
| **Name Only**                 | John Smith           |
| **Pilot ID Only**             | ABC1234              |

Formats with both can use a separator: space, dash (the default), pipe, forward slash, backslash or comma. Nicknames are cut to Discord's limit of 32 characters, keeping the Pilot ID. A format change affects new role requests, so existing members use the role button again to update.

The nickname format and the bot's staff notification channel are shared by every Virtual Airline linked to a server. Rank roles and the join setting are set for each Virtual Airline in Orwell.

## Bot commands {#commands}

Commands run in Discord, not Orwell.

| Command              | Who           | What it does                                                                                                                                                                       |
| -------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/link`              | Manage Server | Links the server to your Virtual Airline with the connection code.                                                                                                                 |
| `/unlink`            | Manage Server | Unlinks the server's airlines after a confirmation. Channels, notification roles and rank roles are cleared, and roles already given stay.                                         |
| `/config`            | Manage Server | Opens a panel for the nickname format, the separator and the staff notification channel.                                                                                           |
| `/setup-role-button` | Server owner  | Posts a button, with a heading, text and label you choose, that members press to get their roles and nickname.                                                                     |
| `/resync`            | Manage Server | Re-syncs every member's roles and nickname with vAMSYS, with a **dry-run** option to preview. Roles not in vAMSYS's expected set are removed. There is a 6-hour wait between runs. |
| `/healthcheck`       | Manage Server | Checks the bot's database, vAMSYS connection, permissions and uptime.                                                                                                              |
| `/ping`              | Everyone      | Checks the bot's response time.                                                                                                                                                    |

The staff notification channel set in `/config` is separate from the posts above. It receives the bot's own messages: roles given, permission errors and system events.

## Keeping in sync {#sync}

The bot checks vAMSYS every 30 seconds. When a pilot changes their public name in vAMSYS, their nickname in your server follows. Rank changes reach a pilot's roles through the rank sync, and `/resync` forces a full sync.

## Disconnect {#disconnect}

**Disconnect** at the bottom of the page stops your Virtual Airline posting to the server, clears your channel choices and rank roles, and issues a new code. You can connect the same server again afterwards.

## Several Virtual Airlines in one server {#multiple}

One server can host several Virtual Airlines. Each runs `/link` with its own code. A pilot in several of them gets the roles of all of them.

## Page history

- 2026-11-27 (v5.5.0): First version for v5.5. Discord moved to Communications in the Orwell menu.
- 2026-11-27 (v5.5.0): Corrected against v5.5.
- 2026-11-28 (v5.5.0): In the beta, v5.5 posts to Discord and changes roles for its own actions.
