Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Extremely Popular
Go to Latest
function botHasChannelPermissions
import { botHasChannelPermissions } from "https://deno.land/x/discordeno@17.0.0/plugins/permissions/src/permissions.ts";

Checks if the bot has these permissions f0r the given channel

Parameters

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