Functioncorev0.14.0
See also:the @Gated decorator from your transport package
DmOnly(
options?: GateNoticeOptions
): Gate<GateContextBase, "DmOnly">\@Gated(DmOnly())
\@SlashRoute('verify')
class VerifyHandler extends SlashHandler<'verify'> {
async execute() {
// ...
}
}options?
options?: GateNoticeOptionsReplace the refusal with a Notice class as notice.