Skip to main content
Module

x/aether/mod.ts>Permission

A Deno library to interface with the Discord API
Latest
class Permission
import { Permission } from "https://deno.land/x/aether@v0.0.3/mod.ts";

Constructors

new
Permission(allow: number, deny?: number)

Properties

allow: number

Allowed numeric permissions

deny: number

Denied numeric permissions

readonly
json: object

JSON value of the permission

Methods

has(permission: keyof Permissions): boolean

Method to see whether the permission includes a specific permission