Roles on arrival
Three features give or take roles around an arrival. They don't know about each other, but they never fight: each one adds its roles (or removes only its own), so the member ends up with all of them.
| Feature | When | What | Set up with |
|---|---|---|---|
| Join roles | Once the gates let the member in (after the captcha when it's on) | Up to 8 roles, for everyone who joins | /guildconfig set welcomer, section Join Role |
| Role saver | At the same moment as the join roles | The roles the member had when they last left | /rolesaver |
| Captcha roles | When the captcha is solved | Gives one role, removes one role | /security role-to-give, /security role-to-remove |
Join roles
Every member the gates let in gets the join roles, bots included. They come about a second and a half after the arrival, the time the gates get to decide, and, when the captcha is on, once the right code is typed. An account a gate turns away (blacklisted, too new, forbidden name, failed captcha) never gets them.
The one exception is the captcha's role to remove: if it's also a join role, it's given right away, with the captcha, since it's the "Pending" role that opens the verification channel. See How they add up.
- iHorizon needs Manage Roles. Without it, nobody gets a join role.
- Roles iHorizon can't hand out are skipped, and the others are still given: a role that was deleted, a role managed by an integration (a bot's role, the booster role), or a role that is now above iHorizon's highest role. When you pick the roles in the panel, it already warns you about the ones that are too high.
- A role with dangerous permissions (Administrator, Ban Members…) needs a confirmation in the panel. Think twice: everyone who gets in gets it, including an account that joins on a server without a captcha.
Role saver
With /rolesaver action:Power On, iHorizon notes a member's roles when they leave, and gives them back when they return.
- What is noted: every role the member had when they left, whatever the reason (they left, were kicked, or were banned). An account a gate turned away, or a member who leaves before being let in, isn't noted: their previous note is kept. Roles with the Administrator permission are left out, unless you turned the role saver on with
settings:Yes. - When: at the same moment as the join roles, so after the captcha when it's on. A member who fails it gets nothing back, and their note waits for a later return.
- What is given back: the noted roles iHorizon can still hand out, except the captcha's role to remove when they come back through the captcha. A role that was deleted since, a managed role, or a role now above iHorizon's highest role is skipped; the others are given.
- One note per member. Each departure replaces the previous note, and the note is erased once the roles are given back.
- Only while it's on. A member who leaves while the role saver is off isn't noted, and a member who returns while it's off doesn't get anything back (their note waits for a later return).
Returning members go through the captcha first
With the captcha on, the saved roles come back only once the code is typed: a former member who had your "Member" role doesn't see the server again before being verified.
Captcha roles
When a member types the right code, iHorizon gives them the role set with /security role-to-give and removes the one set with /security role-to-remove. Nothing happens to these two roles before that, and nothing on a failure: the member is kicked. Right after, the join roles and the role saver's roles are given.
That's what makes the classic setup work: a Pending join role that only opens the verification channel, removed by the captcha, and a Member role that opens the rest, given by the captcha. See the example.
How they add up
The join roles and the role saver run at the same moment and both add roles: neither replaces what the other gave. With the captcha on, they come right after the captcha roles, and leave out the captcha's role to remove, so a member never gets back the role they were just verified out of.
With @Pending as a join role and as the captcha's role to remove, and @Member as its role to give:
| Member | While the captcha waits | Once the code is typed |
|---|---|---|
| New member | @Pending (given with the captcha) | @Member, without @Pending |
| Returning member, left as @Member + @Artist | @Pending | @Member, @Artist, without @Pending |
| Returning member who never passed the captcha (noted with @Pending) | @Pending | @Member, without @Pending |
Returning admin (role saver without settings:Yes) |
@Pending | Their roles except the Administrator ones, + @Member, without @Pending |
| Fails the captcha or leaves | @Pending, then kicked | (nothing) |
Without a captcha, the join roles and the saved roles are given together, about a second and a half after the arrival. Only the captcha's role to remove takes a role away on its own: nothing else in the arrival removes a join role later.