Variablegatewayv0.11.0
IgnoreBots
Stops the handler for a client event whose actor is a bot, with a Silence so nothing is replied. Event-only because a
Silence on an interaction would leave Discord's failed-interaction state. It rejects an interaction handler at
the decorator line. Attach it directly without calling it because it doesn't take options.
See also:Gated
const IgnoreBots: import("@seedcord/core").Gate<
EventGateContext<ValidNonInteractionKeys>,
"IgnoreBots"
>;import { Events } from 'discord.js';
\@Gated(IgnoreBots)
class OnMessage extends EventHandler<Events.MessageCreate> {
async execute() {
// ...
}
}