Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function requireBotChannelPermissions
import { requireBotChannelPermissions } from "https://deno.land/x/discordeno@18.0.1/template/beginner/deps.ts";

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

Parameters

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