Skip to content

KvK Roles

KvK Roles is a member-management tool for servers created with the KvK Server Generator on the Codex Helper website. The generator builds a full KvK server, complete with kingdom and camp roles, channels, and a structure for running a Kingdom versus Kingdom matchup. The /kvk role commands are how you assign people into that structure once the server exists.

When you assign someone a role, the bot does several things in one step: it grants the right kingdom role, adds the matching camp parent role, updates the member’s nickname with a kingdom tag, and sets a hidden sort character so members line up in the correct order in voice channels.

TierKvK Server Generator (not free or Patron)
Command/kvk settings, /kvk role assign, /kvk role remove
Who can useAdmins, plus kingdom R5/Officer leaders within their own kingdom or camp (see Permissions)
Also on dashboardNo

The KvK Server Generator creates a set of roles for every kingdom in the matchup: an R5 (King) role, an Officer (R4) role, a Member role, and a Pilot role, plus camp-wide “lead” and “member” roles that group kingdoms together. The generator records how those roles map to each kingdom and camp.

/kvk role assign and /kvk role remove use that map. You pick a member, a kingdom number, and a role type, and the bot applies (or strips) the full set of roles that go with it. Kingdom numbers autocomplete as you type, showing each kingdom and the camp it belongs to.

Assigning a role also:

  • Grants the camp parent role. Assigning R5 or Officer also adds the camp’s lead role; assigning Member adds the camp’s member role. R5 and Officer assignments also grant the kingdom Member and camp Member roles, so leaders are part of their camp too.
  • Adds Ruins and Altar reminder roles. If those reminder roles exist in the server, they are attached automatically so the member gets event pings. These persist across re-assignments.
  • Sets a nickname tag. The member’s nickname is prefixed with a tag based on their role: [1234 King] for R5, [1234 R4] for Officers, [1234] for Members, and [Pilot] for pilots (where 1234 is the kingdom number).
  • Sorts voice channels. A hidden sort character is added so Kings appear first, then Officers, then Members, then Pilots in voice channel member lists.

Removing a role reverses this. The bot strips the kingdom role, and if the member no longer holds any leader (or member) role for that camp, it removes the camp parent role too, then recalculates the nickname tag.

The bot also watches for role changes made by hand and keeps the camp roles and nickname tags in sync, without anyone running a command.

Both assign and remove are logged to a channel named log (or logs) if one exists, with an embed showing who changed what.

Open the KvK settings panel (admin only). This is how you change a generated server after the fact, without redoing it on the website.

The panel shows your camps, their kingdoms, and the cross-kingdom setting, with a menu to change things:

  • Cross-kingdom assignment: ON/OFF. Tap to flip it. When on, R5/Officers can use /kvk role across every kingdom in their camp; when off (the default), only their own kingdom. Admins are never restricted.
  • Add a kingdom. Pick a camp, type one or more kingdom numbers (up to 5 at a time), and the bot creates that kingdom’s roles, wires them into the right channels, and makes them available to /kvk role assign. Nothing existing is touched.
  • Add a camp. Type a camp name and its kingdom numbers. The bot builds the whole camp in place: camp roles, kingdom roles, the camp’s category and channels, and permissions on shared channels. Existing camps are left alone. This can take a few minutes.
  • Remove a kingdom. Unlinks a kingdom from the setup so /kvk role stops offering it. Its roles and channels are kept in the server - delete them by hand if you no longer want them. The last remaining kingdom cannot be removed.
  • Move a kingdom. Move a kingdom to a different camp (for when the draw lands you in Water but you were added to Wind). The kingdom’s own roles and everyone holding them are kept: channel access moves to the new camp, members holding the kingdom’s R5/Officer roles swap the old camp leadership role for the new camp’s (Members swap the camp role the same way), and the kingdom roles are recoloured to the new camp. A member who also holds a role in another kingdom of the old camp keeps that camp’s roles. Nickname tags don’t change. This can take a minute on busy servers.
  • Role connections. Each kingdom hands out two extra roles: its R5 and Officer roles add a leadership role, and its Member role adds a camp role. By default every kingdom in a camp shares that camp’s pair (for example, 1688 Officer and 3217 Officer both add the camp’s Leadership role). Pick a kingdom here to point either connection at a different role, such as a per-kingdom leadership role you created yourself. The panel lists the current connections under each camp. Changes apply to future assignments; members who already hold the old role keep it until you swap it or re-run /kvk role assign.

Only the admin who opened the panel can use it, and one structural edit runs at a time per server. The bot needs its Administrator permission (from the website invite) to create roles and channels.

Example

/kvk settings

Assign a KvK role to a member.

OptionTypeRequiredDescription
memberMemberYesThe member to assign the role to.
kingdomNumberYesThe kingdom number. Autocompletes with the kingdoms set up in this server, each shown with its camp.
role_typeR5 / Officer / Member / PilotYesThe type of role to assign.

Behavior:

  • Grants the kingdom role for the chosen type, the matching camp parent role, and (for R5/Officer) the kingdom and camp Member roles too.
  • Removes any KvK roles the member held from a previous assignment, so a member only ever holds one kingdom’s role set.
  • Updates the member’s nickname tag and voice-sort position.
  • If a camp role cannot be found (for example it was deleted), the bot still assigns what it can and tells you which role it could not apply.

Example

/kvk role assign member:@Player kingdom:1234 role_type:Officer

Remove a KvK role from a member.

OptionTypeRequiredDescription
memberMemberYesThe member to remove the role from.
kingdomNumberYesThe kingdom number. Autocompletes with the kingdoms set up in this server.
role_typeR5 / Officer / Member / PilotYesThe type of role to remove.

Behavior:

  • Removes the kingdom role for the chosen type.
  • If the member no longer holds any leader role (for R5/Officer) or member role (for Member) for that camp, the camp parent role is removed as well.
  • Recalculates the member’s nickname tag based on the roles they still have, clearing it if they have none.

Example

/kvk role remove member:@Player kingdom:1234 role_type:Member

KvK Roles uses a leadership hierarchy, so kingdom leaders can manage their own people without needing server-wide admin rights.

  • Server admins (Administrator, Manage Server, or Manage Roles) can assign and remove any role type for any kingdom.
  • R5 (King) of a kingdom can assign the Officer role within their own kingdom, and Member/Pilot roles subject to the cross-kingdom setting.
  • Officers (R4) can assign Member and Pilot roles, subject to the cross-kingdom setting.
  • The R5 (King) role itself can only be assigned by a server admin.

How the cross-kingdom setting changes things for R5/Officers:

  • Off (default): they can only manage members in their own kingdom.
  • On: they can manage members across every kingdom in their camp.

/kvk settings is admin-only: it requires Administrator or Manage Server, or the server’s configured Bot Admin role.

The bot also needs Manage Roles to grant and remove roles, and Manage Nicknames to apply the kingdom tags. Make sure the bot’s own role sits above the KvK roles in the server’s role list, or it will not be able to assign them.

  • Generator servers only. These commands are published only to servers created by the KvK Server Generator. They do not exist in other servers.
  • You can edit a server in place. Use /kvk settings to add kingdoms or camps, unlink kingdoms, and flip the cross-kingdom setting, without rebuilding anything.
  • You can also redo a server. For bigger changes, open the KvK Server Generator again, pick that same server from the list, and generate. It resets the roles and channels it built before (including anything added via /kvk settings) and rebuilds them from your new setup. Members lose their assigned kingdom roles and need re-assigning, but channels and roles you added by hand are left alone.
  • One kingdom’s roles at a time. Assigning a member to a kingdom clears their previous KvK roles first, so they never end up in two kingdoms.
  • Nicknames are tagged automatically. The bot prefixes nicknames with the kingdom tag. It cannot change the server owner’s nickname, and very long names are trimmed to fit Discord’s 32-character limit.
  • Reminder roles ride along. Ruins and Altar reminder roles are added on assignment if they exist, and they are kept when KvK roles change.
  • Automatic sync covers manual changes. Roles given or removed by hand in Discord are mirrored automatically. The commands are still the tidiest way to move someone, because they also handle the nickname tag and reminder roles in one go.
  • “Kingdom N not found in this server’s KvK setup.” That kingdom number is not part of this server’s generated setup. Use the autocomplete to pick a valid kingdom, or add it with /kvk settings.
  • “Only server admins can assign the R5 (King) role.” R5 assignment is admin-only. Ask a server admin to grant it.
  • “You can only assign members from your own kingdom.” Cross-kingdom assignment is off. An admin can turn it on in /kvk settings.
  • “I don’t have permission to assign those roles.” The bot’s role is below the KvK roles in the role list. Move the bot’s role above them.
  • “Couldn’t resolve this camp’s role.” A camp role is missing, likely deleted. Open the KvK Server Generator again, pick the server, and generate to reset and rebuild the roles if it keeps happening.
  • “The bot is missing the Administrator permission” when generating. The KvK Server Generator needs the bot to have Administrator so it can build every role and channel. The website checks this before it starts and shows a re-invite button if the permission is missing. Use that button to add the bot again with Administrator, then start the generation again.