Ranks and Discord roles
Keep your game server's ranks - VIP, Moderator, Admin, Owner - in step with Discord roles. Only players who've linked their gamertag are synced: it's the only way to know who's who.
Two directions
| Direction | What happens | Ranks |
|---|---|---|
| Game → Discord | Players with the rank in game get the Discord role - e.g. everyone who's VIP in game gets @VIP | VIP, Moderator, Admin, Owner |
| Discord → game | Members with the Discord role get the rank in game - e.g. give someone @VIP in Discord and they're VIP in game | VIP, Moderator |
Admin and Owner can't be given from a Discord role: anyone handed that role would get full control of your game server.
Setting it up
/ranks link rank: role: direction:
/ranks link rank:VIP role:@VIP direction:Game → Discord
/ranks link rank:Moderator role:@Mods direction:Discord → game
It syncs straight away and tells you what changed. The same rank can be linked both ways (two commands) if you want.
For Game → Discord, Warden needs Manage Roles, and the role has to be below Warden's own role in Server Settings → Roles.
When it syncs
- every 5 minutes,
- a few seconds after someone links their gamertag,
- whenever you run
/ranks sync.
Every change is posted to your admin alerts.
More than one game server
Rank sync covers every game server in your Discord: someone with @VIP gets VIP on all of them, and a VIP on any of them gets the role. To leave a server out, switch Rank sync off for it in /modules. Warden then never reads, gives or takes ranks there - ranks it already gave on that server stay.
Safety rules
- Warden never lowers a rank. In-game ranks are one per player, so giving VIP to an Admin would demote them - Warden skips them instead (
/ranks synclists who kept a higher rank). - It only takes back what it gave. Roles you hand out yourself and ranks from your host's panel or another bot are never removed.
- Nothing is removed while a game server is offline or answers with an empty rank list.
- After a full wipe that clears your server's rank lists, the next sync gives Warden's ranks back.
Other commands
/ranks list- what's linked./ranks unlink rank: direction:- stop syncing. Roles and ranks already given stay.
