Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/discordeno_patched/plugins/mod.ts>validatePermissions

Discord API library for Node and Deno
Go to Latest
function validatePermissions
import { validatePermissions } from "https://deno.land/x/discordeno_patched@18.0.2/plugins/mod.ts";

Checks if the given permission bits are matching the given permissions. ADMINISTRATOR always returns true

Parameters

permissionBits: bigint
permissions: PermissionStrings[]