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

Checks if the bot has these permissions in the given guild

Parameters

guild: bigint | Guild
permissions: PermissionStrings[]