Functiongatewayv0.11.0
See also:Gated
Nsfw(
options?: GateNoticeOptions
): Gate<InteractionGateContext<NonModalInteraction>, "Nsfw">\@Gated(Nsfw())
\@SlashRoute('nsfwcmd')
class NsfwHandler extends SlashHandler<'nsfwcmd'> {
async execute() {
// ...
}
}options?
options?: GateNoticeOptionsReplace the refusal with a Notice class as notice.