Go to Latest
function requireBotGuildPermissions
import { requireBotGuildPermissions } from "https://dotland.deno.dev/x/discordeno@17.0.1/plugins/mod.ts";

Throws an error if the bot does not have all permissions

Parameters

bot: BotWithCache
guild: bigint | Guild
permissions: PermissionStrings[]