Autorole and verification
Roles handed out on join, roles restored on rejoin, and a verify button members click themselves.
Three systems can give a member a role without a moderator: autorole on join, role history when they come back, and verification when they click a button. For roles members pick themselves, see reaction roles.
Give roles to every new member
,autorole needs Manage Roles. Every role on the
list is added to every new member, and each role must sit below the bot's highest role.
Syntax
,autorole add <role>
Example
,autorole add @Member
| Command | Does |
|---|---|
Takes one role off the list | |
Shows the list | |
Empties it, with no per-role undo |
Restore roles when someone rejoins
,autorole history gives a returning member back the
roles they left with, if they rejoin inside a window. It's off by default and free on every tier.
Autorole only fires on a first join.
Syntax
,autorole history [on|off]
Example
,autorole history on
Syntax
,autorole history duration <value>
Example
,autorole history duration 2h
| Free | Server Premium | |
|---|---|---|
Longest window | 12 hours | 48 hours |
The window needs a unit (45m, 2h, 1d). A bare number, or a value over your ceiling, is refused, and
turning it on without a duration gives 12 hours. If Server Premium lapses, your stored 48 hours is kept but
served as 12 until it returns; the bare command shows the window actually in effect. Roles that were deleted
or moved above the bot while the member was away are skipped.
Let members verify themselves
,verification posts a button that gives the
clicker one role. It needs Manage Server and is prefix-only: there is no /verification.
Syntax
,verification setup
Welcome to Righteous
Press the button below to verify yourself and get access to the server.
This creates a #verify channel, a Verified role with no permissions, and a Verify button, and
touches nothing that exists. It does not hide anything on its own: deny View Channel for
@everyone and allow it for the new role wherever you want verification to gate.
| Command | Does |
|---|---|
Reuses a different role; bare, it recreates a deleted one | |
Repairs a missing button, channel permissions or role, and says what it changed. A deleted channel isn't recreated: use reset then setup | |
Shows the settings | |
Adds the button to a message you already posted | |
Disconnects verification and leaves the role and channel in place |
A role with powerful permissions is refused, twice
A role with Administrator, Manage Server, Manage Roles, Ban or Kick is refused when you set it, and checked again on every click against its current permissions, since an admin can edit the role later.
When someone joins
Containment runs first: a mute, jail or timeout the member left with is re-applied if it's still owed, and then role history and autorole are both skipped, so a punishment can't be outrun. A clean rejoiner gets role history, then autorole, then the welcome tail on server messages. A punishment that expired while they were away is not re-applied.
Common issues
A returning member got old roles back unasked. That's role history. Turn it off with
,autorole history off.
A returning member was muted again and got no old roles. Their punishment was still active when they left, so containment ran and skipped the rest.
Autorole didn't apply a role. The role sits above the bot's highest role. Discord refuses it, so move the bot's role up.
Verification refuses my role. It carries a dangerous permission, at setup or at click time. Pick a role without one and set it again.
The verify button says "This interaction failed." Run ,verification update.
