# Nsfw

`function` in `gateway` · v0.9.0

<https://seedcord.org/docs/packages/gateway/0.9.0/functions/nsfw>

Requires an age-restricted channel, else refuses. Pass a Notice class as `notice` to 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 a Notice class as `notice` to replace the refusal.

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

Parameters.

- `options?` `GateNoticeOptions` — Replace the refusal with a Notice class as `notice`.

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