# RequirePermissionsOptions

`interface` in `core` · v0.10.0

<https://seedcord.org/docs/packages/core/0.10.0/interfaces/require-permissions-options>

Options for [`RequirePermissions`](/docs/packages/core/0.10.0/functions/require-permissions) and [`RequireBotPermissions`](/docs/packages/core/0.10.0/functions/require-bot-permissions).

```ts
interface RequirePermissionsOptions
```

## Properties

### in

```ts
in?: 'channel' | 'guild'
```

The set the check reads. `'channel'` reads the effective channel set the payload carries, what
Discord enforces in the invoked channel. `'guild'` reads the base set from roles, available on the
gateway transport only.

### missing

```ts
missing?: GateNoticeOptions
```

Reword or replace the refusal shown when a permission is missing.

### notInGuild

```ts
notInGuild?: GateNoticeOptions
```

Reword or replace the refusal shown when the set is unavailable (outside a guild, or unresolved inside one).
