Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/revoltio/src/util/Permissions.ts>ServerPermissions

No-nonsense Revolt library for nodejs and deno.
Latest
class ServerPermissions
extends BitField
import { ServerPermissions } from "https://deno.land/x/revoltio@v1.0.0/src/util/Permissions.ts";
interface ServerPermissions
import { type ServerPermissions } from "https://deno.land/x/revoltio@v1.0.0/src/util/Permissions.ts";

Methods

serialize(): Record<ServerPermissionsString, boolean>
any(bit: ServerPermissionsResolvable): boolean
add(...bits: ServerPermissionsResolvable[]): this
remove(...bits: ServerPermissionsResolvable[]): this
has(bit: ServerPermissionsResolvable): boolean