variable ROLE_PERMISSIONS

Read through hasPermission. Roles are fixed in code. An admin holds every permission, and a moderator the moderation ones and @everyone in the chat.

Type

Record<Role, readonly Permission[]>

Usage

import { ROLE_PERMISSIONS } from "shared/permissions.ts";