# PermissionAssertion

`interface` in `core` · v0.2.1

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

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

```ts
interface PermissionAssertion extends PermissionNoticeOverrides
```

## Properties

### dangerousNotice

```ts
dangerousNotice: new (message: string | undefined, subject: string, dangerousPerms: readonly string[]) => Notice
```

### inverse

```ts
inverse: boolean;
```

Refuse when the subject holds a scope bit.

### missingNotice

```ts
missingNotice: new (message: string | undefined, subject: string, missingPerms: readonly string[]) => Notice
```

### 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;
```

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