Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function requireBotChannelPermissions
import { requireBotChannelPermissions } from "https://deno.land/x/discordeno@17.0.1/plugins/permissions/mod.ts";

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

Parameters

bot: BotWithCache
channel: bigint | Channel
permissions: PermissionStrings[]