> ## Documentation Index
> Fetch the complete documentation index at: https://stars-components.js.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Function: getMissingPermissions()

> **getMissingPermissions**(`granted`, `required`): `bigint`

Defined in: [packages/http-framework/src/lib/utils/permissions.ts:52](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/http-framework/src/lib/utils/permissions.ts#L52)

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.
