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

Checks if the bot has these permissions in the given guild

Parameters

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