LibertyCode
LibertyCode
  • Welcome
  • lc_adminmenu
    • Introduction
    • Installation
    • Avatars
    • Screenshots
    • Bridge
      • Server
      • Client
    • Player functions
    • Permissions
      • Permission Groups
      • Discord Permissions
    • Exports
Powered by GitBook
On this page
  1. lc_adminmenu
  2. Permissions

Discord Permissions

PreviousPermission GroupsNextExports

Last updated 9 days ago

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' }
  },
  ...
}