Discord Integration1:1 RBAC Parity

Guild Permissions

Exact 1:1 live RBAC parity with the Taicket dashboard covering Real Admins, Temp Admins, Anti-Nuke Owner/Trusted/Emergency Operators, Interviewers, Server Dashboard Staff, and Component Builder delegates.

Live Discord & Database RBAC Parity

Taicket MCP replicates dashboard/src/lib/permissions.js and dashboard/src/lib/antinuke/access.js verbatim. Whenever the bot is present in a guild, permissions are verified live against Discord REST API v10 (fetchGuildDetails, fetchGuildMember, and fetchGuildRoles) rather than trusting stale OAuth session snapshots.

Permission lookups use a bounded 45-second LRU cache with in-flight coalescing (and 20-second config cache for ServerDashboardConfig), immediately invalidated after administrative updates.

RBAC Access Tiers & Exact Enforcement Rules

Access TierVerification FunctionLive Qualification CriteriaAllowed MCP Modules
Real Discord AdmincheckRealAdminGuild / checkServerSettingsAccessLive guild owner_id === userId, OR member holds any role (including @everyone) with ADMINISTRATOR (0x8) or MANAGE_GUILD (0x20)All general modules + configure_server_settings (Enterprise Bot Branding, Linked Main Server on both guilds, delegated Interviewers)
Temporary AdminisTempAdmin / checkManageGuildUser lacks Real Admin bits AND userId is present in GuildConfig.tempAdminUserIdsGeneral dashboard modules EXCEPT Server Settings (configure_server_settings) and Anti-Nuke (configure_antinuke)
Anti-Nuke Owner / Trusted / Emergency OperatorauthorizeAntiNukeRequestLive Discord Guild Owner, active unexpired AntiNukeTrustedUser record, or AntiNukeGuildConfig.emergencyOperatorIds (regular Admins and Temp Admins are strictly blocked)Read Anti-Nuke state & logs; Owner and Trusted Staff (canEditConfig) can tune the 17 protection modules, presets, alert channels, quarantine role, and Enterprise backup schedule
Delegated InterviewercheckInterviewAccessReal/Temp Admin (isAdmin: true) OR userId in InterviewConfig.interviewerUserIds (isAdmin: false)Isolated to Interview records and questions; non-admin interviewers cannot read or modify InterviewConfig admin settings
Server Dashboard StaffcheckServerDashboardAccessReal/Temp Admin OR guild member holding configured ownerRoleIds, adminRoleIds, staffRoleIds, pointsManagerRoleIds, departmentOverseerIds, or department role/head/deputy assignmentIsolated to Server Dashboard insights/operations per staff tier; settings require Real/Temp Admin
Component Builder DelegatecheckComponentBuilderAccessReal/Temp Admin OR userId in ComponentBuilderConfig.allowedUserIds OR member role in allowedRoleIdsComponent Builder drafts and safe deployments; access-control settings require Real/Temp Admin

Field-Level RBAC & Dashboard-Only Boundaries

Authorization applies both at tool entry and at response field projection. A delegated caller who has legitimate access to one module never receives adjacent administrative metadata in get_server_configuration or get_available_features.

  • Interviewer field isolation:: Non-admin interviewers receive zero InterviewConfig admin fields, zero Module Hub summaries, and zero visibility into other modules.
  • Temporary Admin field isolation:: Temp Admins never see tempAdminUserIds, botBranding, linkedMainServer, or Anti-Nuke configuration fields.
  • Non-Anti-Nuke admin isolation:: Regular Discord Administrators who are neither the Server Owner nor an active Anti-Nuke Trusted User / Emergency Operator cannot read or write any Anti-Nuke config or incident logs.
  • Strict Dashboard-Only operations (DASHBOARD_ONLY):: Temp Admin delegation (tempAdminUserIds), Anti-Nuke Trusted Staff & Emergency Operator lists, Anti-Nuke Emergency Lockdown, Anti-Nuke Structural Backup Restore, live member punishments (unban, appeal decisions, jail release, balance/XP edits, transcript deletion, active giveaway mutation), and billing/promo/slot writes are permanently blocked over MCP.

Priority rule: Real Admin overrides Temp Admin

If a user holds live Discord Administrator (0x8) or Manage Server (0x20), isTempAdmin explicitly returns false and the user is evaluated as a Real Discord Admin. Removing their Discord role immediately downgrades them to Temp Admin only if listed in tempAdminUserIds, or revokes access completely otherwise.

Related documentation