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

Throws an error if the bot does not have all permissions

Parameters

guild: bigint | Guild
permissions: PermissionStrings[]