Documentation menu

Permissions

Every command has a minimum permission level (0–5). A member who doesn't meet it can't see or run the command. Levels are resolved per interaction, taking the highest level the member qualifies for.

The six levels

LevelNameHow a member gets it
0UserEveryone — the default
1ModeratorDiscord channel moderation permissions, or a role in moderatorRoleIds
2AdministratorThe Discord Administrator permission, or a role in administratorRoleIds
3Server OwnerThe Discord guild owner
4DeveloperA user id in developers
5Bot OwnerThe ownerId user

Members can always check their own level with /permlevel.

Assigning levels

Set these in config/config.js under permissions:

permissions: {
  moderatorRoleIds:     [ '968…', '111…' ],  // → Moderator (1)
  administratorRoleIds: [ '793…' ],          // → Administrator (2)
  developers:           [ '625…' ],          // → Developer (4)
  ownerId:  '290…'                           // → Bot Owner (5)
}

In an env-only deploy, use MODERATOR_ROLE_IDS, ADMINISTRATOR_ROLE_IDS, DEVELOPER_IDS, and OWNER_ID instead (comma-separated for the lists).

[!TIP] yourself to the moderator/admin role lists if you're the owner.

Command levels at a glance

  • User (0) — all DayZ data commands (/server-info, /statistics, /leaderboard, /player-list) and system commands
  • Moderator (1)/heal-player, /kick-player
  • Administrator (2) — the rest of moderation, all admin and teleport commands
  • Developer (4)/deploy, /reload, /set-name, /set-avatar, /test

See the full list in Commands.

Discord permissions the bot needs

Separately from these internal levels, the bot account needs Discord permissions in your server to function: View Channels, Send Messages, Embed Links, Attach Files (heatmaps), Read Message History, Use External Emojis, Send Messages in Threads, and Use Application Commands. The /invite command generates a link with these. Auto-LB message cleanup additionally needs Manage Messages in the leaderboard channel.

Next: Troubleshooting.