# Booster roles

Source: https://righteousbot.dev/docs/features/boosterrole/

Give every booster a personal role they color, name, icon and share themselves.

A booster role is one role that belongs to one booster, who styles it without asking staff. Staff run one
setup command. Where [autorole](/docs/features/autorole-and-verification/) gives everyone the *same* role,
this gives each booster their *own*.

**The whole command needs [Server Premium](/docs/getting-started/premium-tiers/)**, setup included
(`,boosterrole`, aliases `,boostrole` and `,br`, or `/boosterrole`; default `,`). Creating, recoloring,
`style`, `icon`, `rename`, `mentionable` and `random` also need you to be **boosting right now**.
[`,br info`](/commands/server-tools/boosterrole/#boosterrole-info) doesn't, so a lapsed booster can still
look. The bot needs **Manage Roles**, and its highest role must sit above the base role.

## Set the base role [#set-the-base-role]

[`,br baserole set`](/commands/server-tools/boosterrole/#boosterrole-baserole) (Manage Roles) is the whole
setup. Every booster role is created one slot *below* it, and it is never given to anyone.

<CommandBlock syntax=",br baserole <set|remove> <role>" example=",br baserole set @Community" />

<Callout type="error" title="Without a base role, most of the command says Invalid Base Role">
  Creating, recoloring, `style`, `icon`, `rename`, `mentionable`, `random` and offering a share all need
  it. The message names the base role, not the missing setup, so an unconfigured server looks broken.
</Callout>

<Callout type="warn" title="baserole remove deletes every booster role in the server">
  It deletes each role from Discord, and members lose what they built. There is no undo.
</Callout>

## Create or recolor your role [#create-or-recolor-your-role]

The first run creates the role, names it after you and gives it to you. Every run after recolors it.
There is no `color` keyword on prefix. A color is a hex (`#fd9864`, `#f96`) or a name like `red`.

<CommandBlock syntax=",br <hex> [hex2]" example=",br #fd9864" />

* A **second hex** makes a gradient. On a role that is already a gradient, only the primary repaints.
* `pfp` takes the color from your avatar (server avatar first) at that moment, so run it again after you
  change your avatar: `,br pfp [hex2]`.
* [`,br random`](/commands/server-tools/boosterrole/#boosterrole-random) picks a color for you.
* You can't create one while you hold a colored role above the base role.

## Switch between solid, gradient and holographic [#switch-between-solid-gradient-and-holographic]

<CommandBlock syntax=",br style <solid|gradient|holographic>" example=",br style gradient" />

[`,br style`](/commands/server-tools/boosterrole/#boosterrole-style) changes the shape without new hex
values. `gradient` on a role that never had a second color derives one for you.

<Callout type="error" title="Gradient and holographic need a Server Boost perk">
  A second hex, `style gradient` and `style holographic` all need the server to have Gradient &
  Holographic Role Colors unlocked. Without it the bot refuses. Solid colors are unaffected.
</Callout>

## Put an icon on the role [#put-an-icon-on-the-role]

<CommandBlock syntax=",br icon <emote|attachment|reset>" example=",br icon :sparkles:" />

| Input         | Accepts                                |
| ------------- | -------------------------------------- |
| Custom emote  | Only emotes **this server owns**       |
| Unicode emoji | Any single emoji                       |
| Attachment    | PNG, JPEG or WEBP up to 256KB. No GIFs |
| `reset`       | Clears the icon                        |

<Callout type="error" title="Icons need Role Icons unlocked">
  That is a Server Boost level 2 perk. The bot checks before uploading anything.
</Callout>

## Rename it, and make it pingable [#rename-it-and-make-it-pingable]

[`,br rename <name>`](/commands/server-tools/boosterrole/#boosterrole-rename) changes only the name.
[`,br mentionable`](/commands/server-tools/boosterrole/#boosterrole-mentionable) (aliases `pingable`,
`ping`, `mention`) **toggles** whether the role can be pinged.

<CommandBlock syntax="/boosterrole mentionable" />

## Share your role with up to three people [#share-your-role-with-up-to-three-people]

Sharing is off until a moderator turns it on. If it says it isn't enabled, that's why.

<CommandBlock syntax=",br share <on|off|status>" example=",br share on" />

[`on` and `off`](/commands/server-tools/boosterrole/#boosterrole-share) need Manage Roles (on slash, the
`setting:` option). `status` shows whether it's on, your slots, and who holds your role. Name a member to
send a request with **Accept** and **Deny** buttons.

<CommandBlock syntax=",br share <@member>" example=",br share @friend" />

| Rule                      | Value                                             |
| ------------------------- | ------------------------------------------------- |
| Slots per booster         | 3 members at a time                               |
| Cooldown between requests | 120 seconds                                       |
| Request expiry            | 2 minutes                                         |
| Who can receive           | Someone with no booster role and no share already |

Accepting re-checks everything live. `/boosterrole share` wants **one** of `member` or `setting`, not both.

<CommandBlock syntax=",br unshare [@member|all]" example=",br unshare @friend" />

[`,br unshare`](/commands/server-tools/boosterrole/#boosterrole-unshare) with a member (or an ID) removes
them from *your* role, and `all` clears every share. Run **bare**, it drops a share somebody gave *you*.

## Look at, delete or reset roles [#look-at-delete-or-reset-roles]

| Command                                                                         | Does                                                          |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| [`,br info`](/commands/server-tools/boosterrole/#boosterrole-info)              | Your role: colors, style, position, share slots               |
| [`,br list`](/commands/server-tools/boosterrole/#boosterrole-list)              | Staff (Manage Roles): every booster role and its owner        |
| [`,br delete [member]`](/commands/server-tools/boosterrole/#boosterrole-delete) | Deletes your role; naming someone else needs Manage Roles     |
| [`,br reset`](/commands/server-tools/boosterrole/#boosterrole-reset)            | Staff: deletes every booster role but **keeps the base role** |

## When a boost ends [#when-a-boost-ends]

The role is **deleted** the moment its owner stops boosting or leaves, and anyone it was shared with loses
it too. Boosting again means building it from scratch (see [what a lapse takes with it](/docs/getting-started/premium-tiers/#some-settings-survive-inert)). Delete the *base role* by hand and the setup clears
itself.

## Common issues [#common-issues]

**Everything answers "Invalid Base Role".** Nobody ran `,br baserole set <role>`.

**"Bot Needs Higher Hierarchy".** Move the bot's role above the base role.

**"Higher Color Role Hierarchy".** You hold a colored role above the base role. Move or drop it.

**`,br mentionable` shows syntax help.** Prefix expects a word after it and ignores it, so
`,br mentionable on` toggles. `/boosterrole mentionable` has no quirk.
