# Nsfw

`function` in `gateway` · v0.1.0-next.3

<https://docs.seedcord.org/packages/gateway/0.1.0-next.3/functions/nsfw>

Requires an age-restricted channel, else refuses. Pass [`GateNoticeOptions`](/packages/core/0.1.0-next.5/interfaces/gate-notice-options) to reword or replace the refusal.

A thread inherits its parent channel's nsfw flag. ModalSubmit has no reliable channel, so it is excluded.

```ts
Nsfw(
    options?: GateNoticeOptions
): Gate<InteractionGateContext<NonModalInteraction>, "Nsfw">
```

Requires an age-restricted channel, else refuses. Pass [`GateNoticeOptions`](/packages/core/0.1.0-next.5/interfaces/gate-notice-options) to reword or replace the refusal.

A thread inherits its parent channel's nsfw flag. ModalSubmit has no reliable channel, so it is excluded.

Parameters.

- `options?` `GateNoticeOptions` — Reword the default refusal with `message`, or replace it with `notice`.

Returns `Gate<InteractionGateContext<NonModalInteraction>, 'Nsfw'>`.
