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

# Umbrella Role

> A single server-wide role that Nocturne automatically gives to every active staff member across all trees, and removes when they no longer hold any staff position.

An **Umbrella Role** spans all of your trees. Where Base Roles and Linked Roles are scoped to one tree, the Umbrella Role represents "this person is staff somewhere in this server". Think a collective `@Staff` role that Nocturne keeps accurate automatically.

***

<h2 id="how-it-works">
  How It Works
</h2>

Once an Umbrella Role is configured, Nocturne folds it into the role math for every staff action automatically.

| Action           | Umbrella Role Behaviour                                                                                           |
| ---------------- | ----------------------------------------------------------------------------------------------------------------- |
| `/staff hire`    | Added if the member doesn't already have it.                                                                      |
| `/staff promote` | Added back if somehow missing; otherwise untouched.                                                               |
| `/staff demote`  | Added back if somehow missing; otherwise untouched.                                                               |
| `/staff fire`    | Removed **only if** the member holds no Base Role in any other tree. If they're still staff elsewhere, it's kept. |

Because the Umbrella Role's job is to mark "is this person staff *anywhere*", Nocturne checks the member's roles across **every tree in the server**, not just the one the action was run against, before deciding to remove it.

<Info>
  Umbrella Role changes are intentionally **not** included in the staff action log embed sent to your log channel. Only the primary Base Role (and any Linked Role) changes for the relevant tree are logged.
</Info>

***

<h2 id="umbrella-set">
  Setting an Umbrella Role
</h2>

To set up an umbrella role, run the following command:

<Badge color="red" size="sm">User: Manage Server</Badge>

<Tabs>
  <Tab title="Command" icon="code-simple">
    ```text Command theme={null}
    /config umbrella set <role>
    ```

    ```text Example theme={null}
    /config umbrella set @Staff
    ```
  </Tab>

  <Tab title="Visual Output" icon="image">
    <img src="https://mintcdn.com/nocturneidle/77VOh113ntdql3qI/images/Config-Umbrella-Set.png?fit=max&auto=format&n=77VOh113ntdql3qI&q=85&s=e979d236ee4a41d9fc0d1a010cee1b29" alt="Config Umbrella Set" title="Config Umbrella Set" className="mx-auto" style={{ width:"80%" }} width="617" height="276" data-path="images/Config-Umbrella-Set.png" />
  </Tab>
</Tabs>

<Warning>
  This role cannot be a Base Role or a Linked Role in **any** tree. Further, this role can no longer be added to any tree.
</Warning>

***

<h2 id="umbrella-remove">
  Removing the Umbrella Role
</h2>

If you no longer need a server-wide staff role, you can remove the configuration. Nocturne will stop managing it going forward.

<Badge color="red" size="sm">User: Manage Server</Badge>

<Tabs>
  <Tab title="Command" icon="code-simple">
    ```text Command theme={null}
    /config umbrella remove
    ```
  </Tab>

  <Tab title="Visual Output" icon="image">
    <img src="https://mintcdn.com/nocturneidle/77VOh113ntdql3qI/images/Config-Umbrella-Remove.png?fit=max&auto=format&n=77VOh113ntdql3qI&q=85&s=7b608c4c2072b783f99cac5b2bc53060" alt="Config Umbrella Remove" title="Config Umbrella Remove" className="mx-auto" style={{ width:"80%" }} width="602" height="267" data-path="images/Config-Umbrella-Remove.png" />
  </Tab>
</Tabs>
