# IgnoreBots

`variable` in `gateway` · v0.1.0-next.3

<https://docs.seedcord.org/packages/gateway/0.1.0-next.3/variables/ignore-bots>

Drops a client event whose actor is a bot, with a [`Silence`](/packages/core/0.1.0-next.5/classes/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. Takes no options, so attach it directly without calling it.

```ts
const IgnoreBots: import("@seedcord/core").Gate<
    EventGateContext<ValidNonInteractionKeys>,
    "IgnoreBots"
>;
```

## Examples

```ts
import { Events } from 'discord.js';

\@Gated(IgnoreBots)
class OnMessage extends EventHandler<Events.MessageCreate> {
    async execute() {
        // ...
    }
}
```

## See also

- [Gated](/packages/gateway/0.1.0-next.3/functions/gated)
