# PermissionAssertion

`interface` in `core` · v0.12.0

<https://seedcord.org/docs/packages/core/0.12.0/interfaces/permission-assertion>

The check [`assertPermissions`](/docs/packages/core/0.12.0/functions/assert-permissions) runs.

```ts
interface PermissionAssertion
```

## Properties

### inverse

```ts
inverse?: boolean
```

Refuse when the subject holds a scope bit.

### notice

```ts
notice?: PermissionNoticeConstructor | undefined
```

Your Notice class, thrown in place of the default refusal. seedcord constructs it with the missing names, or the held ones under `inverse`.

### permissions

```ts
permissions: bigint;
```

The effective permission bitfield the subject holds, computed by the caller.

### scope

```ts
scope: PermissionScope;
```

The permission flag bits to check.

### subject

```ts
subject: string | null;
```

Mention string for who is checked, used as the refusal's subject. Null addresses the caller.
