Give roles back when members rejoin

Turn on sticky roles so members get their roles back when they return, and can't shed a mute by leaving.

  • About 3 minutes
  • In Discord
  • 4 steps

Before you start

  • The Premium plan in your server
  • Administrator

Turn on sticky roles

Run /sticky roles set with enable set to true. From then on, Element remembers a member's roles when they leave.

staff

Commands matching /sticky roles

  • /sticky roles setModify sticky-roles settings.APP
  • /sticky roles settingsShow current sticky-roles configuration.APP
/sticky roles setenable:True

Choose when roles come back

By default, roles come back the moment a member rejoins. Two settings change that:

  • automatic_deployment_role waits until the member has a role, such as your verified role, so returning members still go through verification.
  • automatic_deployment set to false stops giving roles back by themselves. Staff then use /sticky roles apply, or members use /sticky roles reclaim.
staff
/sticky roles setautomatic_deployment_role:@Verified

Block roles that shouldn't come back

Run /sticky roles block and pick roles that should never be given back, like a temporary event role. /sticky roles blocked lists them, and /sticky roles unblock removes one.

Roles with Administrator or other wide permissions aren't given back either, unless the server owner turns on allow_harmful_roles.

Roles — 5

  1. Element
  2. MutedComes back
  3. Level 10Comes back
  4. Event 2026Blocked
  5. @everyone

Set how long roles are kept

retention_days is how long Element keeps a member's roles after they leave, from 7 to 365 days. It starts at 90. After that, the stored roles are deleted.

Check everything with /sticky roles settings.

staff
/sticky roles setretention_days:180

1/4