Functiongatewayv0.2.1-next.0
Nsfw
Requires an age-restricted channel, else refuses. Pass GateNoticeOptions to reword or replace the refusal.
A thread inherits its parent channel's nsfw flag. ModalSubmit has no reliable channel, so it is excluded.
See also:Gated
Nsfw(
options?: GateNoticeOptions
): Gate<InteractionGateContext<NonModalInteraction>, "Nsfw">options?
options?: GateNoticeOptionsReword the default refusal with message, or replace it with notice.