Skip to main content
getMissingPermissions(granted, required): bigint
Defined in: packages/http-framework/src/lib/utils/permissions.ts:52 Computes the permissions from required that are missing in granted.

Parameters

granted

bigint The bitfield of the permissions that were granted.

required

bigint The bitfield of the permissions that are required.

Returns

bigint The bitfield of the missing permissions, 0n if none are missing.

Remarks

Members with the Administrator permission implicitly have every permission, so this returns 0n when granted contains it.