> ## 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.

# Staff Actions

> The staff command group is the core engine of Nocturne, allowing you to seamlessly manage your team while the bot handles all role assignments, cleanups, DMing the target and logging automatically.

The `/staff` command group is the day-to-day side of Nocturne. To run (most of) these commands, executors either need the native Discord `Manage Roles` permission, or must be granted access via a [Whitelist Role](/commands/config/whitelist-roles).

<Note>
  Want to know more about Whitelist Roles? Check out our [Whitelist Role Guide](/commands/config/whitelist-roles).
</Note>

***

<h2 id="common-parameters">
  Common Parameters
</h2>

Across all staff actions, you will see a few recurring optional and required parameters. Here is what they do:

* **`[reason]`**
  * A brief explanation for the action. This will be mentioned in the log activity.
  * *Note: This is optional for Hires and Promotions, but strictly **required** for Fires and Demotions.*
  * [Predefined reasons](/commands/config/reasons) are used here. You can configure reasons, and they will surface with this parameter when you start typing.
* **`[notes]`**
  * An optional secondary text field, usually used to link evidence, add a private note, or expand on the reason.
  * This is not mentioned in the log activity. It fills the `{notes}` variable in custom [DM Notices](/commands/config/dm-notices).
* **`[dm-user]`**
  * It is a True/False toggle that overrides the server's global [DM Message](/commands/config/overview#dm-messages-global-toggle) setting on a case-by-case basis.

***

<h2 id="hire">
  Hiring Staff
</h2>

Hiring a user automatically assigns them the entry-level Base Role (Position 1) of the specified tree, alongside any Linked Roles attached to it.

<Badge color="red" size="sm">User: Manage Roles (or Whitelisted Role)</Badge>

<Tabs>
  <Tab title="Command" icon="code-simple">
    ```text Command theme={null}
    /staff hire <user> <tree> [reason] [dm-user] [notes]
    ```

    ```text Example theme={null}
    /staff hire user:@ArcticFox tree:Moderation reason:Passed the selection round! notes:Make sure to check <#1240638425992794164> for more information! Say 'hi' is <#1240638425992794165>
    ```
  </Tab>

  <Tab title="Visual Output" icon="image">
    <Columns cols={2}>
      <Column>
        <img alt="Staff Hire" title="Staff Hire" className="mx-auto" src="https://mintcdn.com/nocturneidle/HGP1XeHwOgeZO9_d/images/Staff-Hire.png?fit=max&auto=format&n=HGP1XeHwOgeZO9_d&q=85&s=89685da80a91982151c7b1d5ad232a37" style={{ width:"88%" }} width="500" height="273" data-path="images/Staff-Hire.png" />
      </Column>

      <Column>
        <img src="https://mintcdn.com/nocturneidle/HGP1XeHwOgeZO9_d/images/Staff-Hire-Log.png?fit=max&auto=format&n=HGP1XeHwOgeZO9_d&q=85&s=1850bca94ef142be8533f8051c7c0017" alt="Staff Hire Log Output" title="Staff Hire Log Output" className="mx-auto" width="477" height="228" data-path="images/Staff-Hire-Log.png" />
      </Column>
    </Columns>
  </Tab>
</Tabs>

* In the above example, `@ArcticFox` will be given the first role in the Moderation tree.
* If configured, they will also be sent a DM Notice, which will include the note as filled in the command.

***

<h2 id="promote">
  Promoting Staff
</h2>

Promoting a user moves them one step up the tree's hierarchy (e.g., from Position 1 to Position 2). Nocturne automatically removes their old Base Role and assigns the new one. It will also automatically update its linked roles.

<Badge color="red" size="sm">User: Manage Roles (or Whitelisted Role)</Badge>

<Tabs>
  <Tab title="Command" icon="code-simple">
    ```text Command theme={null}
    /staff promote <user> <tree> [reason] [dm-user] [notes]
    ```

    ```text Example theme={null}
    /staff promote user:@ArcticFox tree:Moderation
    ```
  </Tab>

  <Tab title="Visual Output" icon="image">
    <Columns cols={2}>
      <Column>
        <img alt="Staff Promote" title="Staff Promote" className="mx-auto" src="https://mintcdn.com/nocturneidle/HGP1XeHwOgeZO9_d/images/Staff-Promote.png?fit=max&auto=format&n=HGP1XeHwOgeZO9_d&q=85&s=9be5cfb7fcb985ce816adb49c06d8c04" style={{ width:"100%" }} width="507" height="217" data-path="images/Staff-Promote.png" />
      </Column>

      <Column>
        <img src="https://mintcdn.com/nocturneidle/HGP1XeHwOgeZO9_d/images/Staff-Promote-Log.png?fit=max&auto=format&n=HGP1XeHwOgeZO9_d&q=85&s=4024ea8bdbbee881ece84aab78f4b2e7" alt="Staff Promote Log Output" title="Staff Promote Log Output" className="mx-auto" style={{ width:"100%" }} width="463" height="287" data-path="images/Staff-Promote-Log.png" />
      </Column>
    </Columns>
  </Tab>
</Tabs>

* In the above example, `@ArcticFox` will gain the next role in the Moderation tree. They will also receive the linked roles associated with that new role.
* If configured, they will also be sent a DM Notice.

<Tip>
  Check out [Persistence Flag](/commands/config/overview#persistence-linked-roles) to toggle the linked role behaviour during promotion!
</Tip>

***

<h2 id="demote">
  Demoting Staff
</h2>

Demoting a user moves them one step down the tree's hierarchy (e.g., from Position 2 to Position 1). Because this is a negative action, **a reason is always required.**

<Badge color="red" size="sm">User: Manage Roles (or Whitelisted Role)</Badge>

<Tabs>
  <Tab title="Command" icon="code-simple">
    ```text Command theme={null}
    /staff demote <user> <tree> <reason> [dm-user] [notes]
    ```

    ```text Example theme={null}
    /staff demote user:@ArcticFox tree:Moderation reason:Failed activity quota dm-user:false
    ```
  </Tab>

  <Tab title="Visual Output" icon="image">
    <Columns cols={2}>
      <Column>
        <img alt="Staff Demote" title="Staff Demote" className="mx-auto" src="https://mintcdn.com/nocturneidle/HGP1XeHwOgeZO9_d/images/Staff-Demote.png?fit=max&auto=format&n=HGP1XeHwOgeZO9_d&q=85&s=621592cf3310e241967e8ee904741827" style={{ width:"100%" }} width="506" height="242" data-path="images/Staff-Demote.png" />
      </Column>

      <Column>
        <img src="https://mintcdn.com/nocturneidle/HGP1XeHwOgeZO9_d/images/Staff-Demote-Log.png?fit=max&auto=format&n=HGP1XeHwOgeZO9_d&q=85&s=3ced4cc8d68a3cb6bdd099a5159b1795" alt="Staff Demote Log Output" title="Staff Demote Log Output" className="mx-auto" style={{ width:"100%" }} width="447" height="286" data-path="images/Staff-Demote-Log.png" />
      </Column>
    </Columns>
  </Tab>
</Tabs>

* In the above example, `@ArcticFox` will be demoted down a role in the Moderation tree. They will also lose the linked roles associated with the previous role.
* In this specific example, `[dm-user]` is set to false. Nocturne will **not** send a DM notice to `@ArcticFox`.

***

<h2 id="fire">
  Firing Staff
</h2>

Firing a user completely strips them of their current Base Role and all associated Linked Roles within that tree. Like demotions, **a reason is always required.**

<Badge color="red" size="sm">User: Manage Roles (or Whitelisted Role)</Badge>

<Tabs>
  <Tab title="Command" icon="code-simple">
    ```text Command theme={null}
    /staff fire <user> <tree> <reason> [dm-user] [notes]
    ```

    ```text Example theme={null}
    /staff fire user:@ArcticFox tree:Moderation reason:Lacks Christmas Spirit
    ```
  </Tab>

  <Tab title="Visual Output" icon="image">
    <Columns cols={2}>
      <Column>
        <img alt="Staff Fire" title="Staff Fire" className="mx-auto" src="https://mintcdn.com/nocturneidle/HGP1XeHwOgeZO9_d/images/Staff-Fire.png?fit=max&auto=format&n=HGP1XeHwOgeZO9_d&q=85&s=4af6a7d9f987d74f1cb6f6118f606ab6" style={{ width:"100%" }} width="492" height="223" data-path="images/Staff-Fire.png" />
      </Column>

      <Column>
        <img src="https://mintcdn.com/nocturneidle/HGP1XeHwOgeZO9_d/images/Staff-Fire-Log.png?fit=max&auto=format&n=HGP1XeHwOgeZO9_d&q=85&s=04f770237f304fddfd76e30d115887ce" alt="Staff Fire Log Output" title="Staff Fire Log Output" className="mx-auto" style={{ width:"100%" }} width="463" height="235" data-path="images/Staff-Fire-Log.png" />
      </Column>
    </Columns>
  </Tab>
</Tabs>

* In the above example, `@ArcticFox` will lose all roles from the associated tree.
* If configured, they will also be sent a DM Notice.

<Tip>
  Check out [Instant-fire Flag](/commands/config/overview#instant-fire) to control when a user can be fired.
</Tip>

***

<h2 id="info">
  Staff Information
</h2>

You can look up a user's staff roles across all trees in the server, along with the position in the tree, their linked roles, and any discrepancies on their profiles, such as having multiple base roles from the same tree, using a single `/staff info` command.

<Tabs>
  <Tab title="Command" icon="code-simple">
    ```text Command theme={null}
    /staff info [user]
    ```

    ```text Example theme={null}
    /staff info user:@ArcticFox
    ```
  </Tab>

  <Tab title="Visual Output" icon="image">
    <img src="https://mintcdn.com/nocturneidle/Keqj0N3yO-Ia9i09/images/Staff-Info.png?fit=max&auto=format&n=Keqj0N3yO-Ia9i09&q=85&s=71deec07d08eea15cd12b12b91c39db3" alt="Staff Info Output" title="Staff Info Output" className="mx-auto" style={{ width:"80%" }} width="695" height="362" data-path="images/Staff-Info.png" />
  </Tab>
</Tabs>
