Skip to content
Functiongatewayv0.7.5

checkBotPermissions

Checks the bot's own permissions in a Guild or TextChannel. Refuses when a permission in scope is missing, or with inverse when one is present. When the bot member is uncached, the refusal reports every permission in scope as missing.

checkBotPermissions(
    target: Guild | TextChannel,
    scope: PermissionScope,
    inverse?: boolean,
    errors?: PermissionNoticeOverrides
): void