Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
function requireBotChannelPermissions
import { requireBotChannelPermissions } from "https://deno.land/x/discordeno@13.0.0-rc45/template/beginner/deps.ts";

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

Parameters

channel: bigint | Channel
permissions: PermissionStrings[]