Functionseedcordv0.10.6
checkBotPermissions
Checks if the bot has required permissions in a GuildGuild or TextChannel.
Throws:
A MissingPermissions error when required permissions are missing or when bot member is unavailable/uncached
checkBotPermissions(
target: Guild | TextChannel,
scope: BotPermissionScope,
inverse?: boolean,
errors?: PermissionErrorCtors
): voidcheckBotPermissions(
target: Guild | TextChannel,
scope: BotPermissionScope,
inverse?: boolean,
errors?: PermissionErrorCtors
): voidtarget
target: Guild | TextChanneltarget: Guild | TextChannelGuild or text channel to check in
scope
scope: BotPermissionScopescope: BotPermissionScopePermission bits to validate
inverse?
errors?
errors?: PermissionErrorCtorserrors?: PermissionErrorCtorsOptional custom error constructors