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