# IgnoreBots

`variable` in `seedcord` · v0.15.0

<https://docs.seedcord.org/packages/seedcord/0.15.0/variables/ignore-bots>

Drops a client event whose actor is a bot, with a [`Silence`](/packages/kit/0.2.0/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: 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/seedcord/0.15.0/functions/gated)
