Skip to content
Functiongatewayv0.9.0

checkPermissions

Checks a Role or a GuildMember against the base permission set from roles, or against a channel's set when in is given. Refuses when a permission in scope is missing, or with inverse when one is present.

Throws:

  • A Notice when the check refuses. It lists the missing or present permissions.

checkPermissions(
    { for: target, in: channel, scope, inverse, notice },
    input: CheckPermissionOptions
): void

{ for: target, in: channel, scope, inverse, notice }

{ for: target, in: channel, scope, inverse, notice }