Functiongatewayv0.11.0
Throws:
A
Noticewhen the check refuses. It lists the missing or present permissions.A SeedcordError when the guild's member cache doesn't hold the bot's member.
checkBotPermissions(
{ in: where, ...check },
input: CheckBotPermissionOptions
): voidimport { PermissionFlagsBits } from 'discord.js';
import { checkBotPermissions } from '@seedcord/gateway';
checkBotPermissions({ in: channel, scope: [PermissionFlagsBits.SendMessages, PermissionFlagsBits.ViewChannel] });{ in: where, ...check }
{ in: where, ...check }input
input: CheckBotPermissionOptions