# Nsfw

`function` in `seedcord` · v0.14.0

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

Requires an age-restricted channel, else refuses. Pass [`GateNoticeOptions`](/packages/seedcord/0.14.0/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/seedcord/0.14.0/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'>`.
