Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function requireBotChannelPermissions
import { requireBotChannelPermissions } from "https://deno.land/x/discordeno@17.2.0/plugins/permissions/src/permissions.ts";

Throws an error if the bot has not all of the given channel permissions

Parameters

channel: bigint | Channel
permissions: PermissionStrings[]