Discord Permissions

You can synchronize permissions in the Admin Menu with Discord roles. To do this, you need to set up the Discord Bot (See: Avatars) and paste the Discord role ID into each permission group in bridge/[framework]/permission_groups.lua Permission Groups.

1

Create a role

Go to your Discord Server Settings -> Roles and create a role relevant to the permission group.

2

Copy Role ID

3

Set the Role ID

Set the discord group ID for the permission group

bridge/[framework]/permission_groups.lua
---@class PermissionGroup
---@field group string
---@field permissions string[]

---@type PermissionGroup[]
return {
  {
    group = 'owner',
    discord_group_id = '1372359455940804620', -- Paste the Discord Role ID here
    permissions = { 'all' }
  },
  ...
}

Last updated