Roles
Three ways to hand out roles without staff doing it by hand: panels members click for themselves, panels whose roles come off on their own (event pings, staff duty), and roles that remove themselves when their time is up.
Where: Dashboard โ Members โ Roles ยท In Discord: /selfroles, /tempreactroles and /temprole
#Self role panels
A panel is a message with buttons or a dropdown. Members pick the roles they want, and take them back off the same way. Use them for ping roles, event access, department interest, or anything a member should be able to opt in and out of on their own.
#Build a panel
- Name it. Type a name under New panel name and press Create panel. The name is internal; it is how you find the panel again, and no two panels can share one.
- Add the roles. Pick a role under Add a role, optionally type a Button label (it defaults to the role name), and press Add role.
- Set the text and limits, then press Save text and limits.
- Post it. Choose a channel under Post to channel and press Post panel.
| Setting | What it does |
|---|---|
| Heading | The panel's title. |
| Body text | The paragraph under the title. |
| Style | Buttons (five to a row, best for a handful of roles) or Dropdown (one select menu, best for many). |
| How many | Multiple roles lets a member hold any combination. One role only swaps their pick, so the panel behaves like a radio group. |
| Max roles | How many roles from this panel one member may hold. 0 means unlimited, and the cap is ignored when the panel is set to one role only. |
| Required role | Only members with this role can use the panel. Leave it unset for everyone. |
| Post to channel | Where the panel message goes. |
A panel holds at most 25 roles, which is Discord's ceiling for a dropdown and for five rows of buttons alike.
Editing a panel that is already posted updates the live message in place. Posting again replaces the earlier copy rather than leaving two panels behind. Deleting a panel deletes its message too: roles members already hold are left alone.
#What the panel refuses
FiveUnity checks each role when you add it and again before the panel is posted, so a panel never ships a button that cannot work. A role is refused when it no longer exists, is managed by an integration (a bot role or the Nitro booster role), is @everyone, sits at or above FiveUnity's own highest role, or when FiveUnity is missing Manage Roles.
Roles a member holds from outside the panel are never touched.
#In Discord
/selfroles needs Manage Roles and does everything the dashboard does:
/selfroles create name: title: description: style: mode: max_roles: required_role:/selfroles add name: role: label: description: emoji:: thedescriptionandemojioptions are Discord-only; the dashboard's Add a role takes a label/selfroles remove name: role:/selfroles send name: channel:/selfroles list: every panel with its style, mode, role count and where it is posted/selfroles delete name:
For add, remove, send and delete, start typing the panel name and pick it from the suggestions. A name typed with different capitals still finds the panel.
Pressing a button or using the dropdown is open to every member. That is the point of the feature. Each pick toggles: choosing a role you do not have adds it, choosing one you already have removes it, and roles you did not pick are left alone. The answer comes as a private message, and the dropdown clears itself after every pick, so the same role can be picked again later to take it off.
#Temporary react role panels
A panel with a green Get button for each role and a red Remove button. A member presses Get to take a role and Remove to drop it, and if they forget, the role comes off on its own. Built for event pings ("ping me for tonight's car meet") and staff duty ("I'm on duty").
#How long a role lasts
Every panel has at least one of these, and a role comes off at whichever is reached first:
- How long a role lasts: counted from each press. With
8h, every member keeps the role for 8 hours after they pressed. Good for duty, so nobody stays on duty overnight by accident. - Closing time: the panel locks, its buttons grey out, and every role it gave comes off. Good for an event that ends at a set time.
#Build a panel
- Name it. Type a name under New panel name, set How long a role lasts (
8hby default, or clear it after creating if you only want a closing time) and press Create panel. - Add the roles. Pick a role under Add a role, optionally type a Button label and an Emoji, and press Add role. A panel holds up to 20 roles.
- Set the text and rules, then press Save panel.
- Post it. Choose a channel under Post to channel and press Post panel.
| Setting | What it does |
|---|---|
| Heading, Body text | The panel's title and text. How long roles last is added under the text for you. |
| Remove button text | For example Go off duty. Empty uses Remove role (or Remove roles). |
| How long a role lasts | 30m, 8h, 3d, 2w. Empty means roles end only at the closing time. |
| Closing time | A date and time in your time zone. Empty means the panel stays open. |
| How many | Any number, or One at a time, which swaps a member's role when they pick another (one duty at a time). |
| Required role | Only members with this role can use the panel, for example Staff on a duty board. |
Changing How long a role lasts applies to the next press; roles already handed out keep their timers. Moving the closing time earlier brings every running role in to the new time.
#What members see
- Get gives the role and says privately when it comes off. Pressing it again restarts the timer, but never shortens a longer one.
- Remove takes it off. A member holding several of the panel's roles is asked which to drop. Remove still works after the panel closes.
- A role a member already holds from staff, with no timer, is left alone: the panel never puts a timer on it.
#Who has it
Show holders lists who holds a role from the panel and when it comes off, each with Take off now. Clear everyone takes the panel's roles off everyone at once, for the end of an event or a shift. Deleting a panel deletes its message; roles members already took still run out on their own, so clear first if they should go now.
#In Discord
/tempreactroles needs Manage Roles and does everything the dashboard does:
/tempreactroles create name: duration: closes_in: title: description: mode: required_role: remove_label:/tempreactroles add name: role: label: emoji:and/tempreactroles remove name: role:/tempreactroles edit name:with any of the create options. Typeoffindurationorcloses_into clear it,resetinremove_label, or pick@everyoneas the required role to clear it./tempreactroles send name: channel:/tempreactroles holders name:,/tempreactroles clear name:,/tempreactroles list/tempreactroles delete name: clear_roles:
Durations take 30m, 8h, 3d, 2w, or combinations like 1h30m, from one minute to one year. The same role checks as self role panels apply.
#Temporary roles
Grant a role with a duration and FiveUnity takes it back when the clock runs out. Handy for trial staff, timed whitelist access, event access, and gang probation.
#Grant one
From the dashboard, find the Member by name (or paste their user id or mention), pick a Role, set a Duration and an optional Reason, then press Grant temporary role.
The list below shows active grants, soonest to expire first, 200 at a time: Load more fetches the next ones, and the line beside it says how many there are in total. Once there are eight or more, a search box filters the loaded grants by member, role or reason.
In Discord it is one command: /temprole add user:@Member role:@Trial Staff duration:2w reason:Trial period. /temprole needs Manage Roles and replies privately.
#Durations
A whole number and a unit: m minutes, h hours, d days, w weeks. For example 30m, 12h, 3d, 2w. The shortest grant is 1 minute and the longest is 1 year. Anything else is refused, including bare numbers, decimals and seconds.
Granting a role a member already holds temporarily replaces the expiry rather than stacking a second timer, so extending a trial is the same command with a longer duration.
#What happens on expiry
FiveUnity sweeps for expired grants every minute, so the role comes off within a minute of its deadline and the removal is written to your command log. If the member has left the server or the role has been deleted in the meantime, the record is simply discarded rather than retried forever.
The same role checks as self role panels apply: an integration-managed role, @everyone, or a role at or above FiveUnity's highest role cannot be granted.
#End one early
The dashboard lists every active grant with the role, the member, when it expires and the reason, each with a Revoke now button. In Discord, /temprole remove user: role: does the same for a live temporary grant (it will not remove a role that was not given with /temprole, a role at or above your own highest role, or a role from someone you do not outrank), and /temprole list user: @Member shows one member's active grants with their expiry times.
#Staff-assigned roles
Two commands cover the case where a role should be given by a person rather than claimed or timed. Neither has a dashboard panel.
/role add user: role:and/role remove user: role:: usable by anyone with Administrator or Manage Roles, and by anyone holding a role that has been bound to that specific role./role-bindings bind manager_role: target_role:: Administrator only. Lets a role hand out one named role through/role addwithout giving anyone Manage Roles./role-bindings unbindundoes it and/role-bindings listshows every binding.
Bindings are the tidy way to let, say, department heads hand out their own department's roles and nothing else.
Every feature on this page depends on FiveUnity holding Manage Roles and sitting above the roles it manages in your server's role list. If a role never applies, that is almost always why.
#Related
- Community: welcome flow, auto roles on join, and the vanity status role
- Permissions: who can run which commands
- Moderation commands:
/temproleand/role - Utility commands:
/selfrolesand/tempreactroles