blob: 88520d2155549a49ba81df2038d3e96eda0c1eb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { BotListener, Emitter, MessageAutomod, type BotClientEvents } from '#lib';
import { Events } from 'discord.js';
export default class AutomodMessageCreateListener extends BotListener {
public constructor() {
super('automodCreate', {
emitter: Emitter.Client,
event: Events.MessageCreate
});
}
public async exec(...[message]: BotClientEvents[Events.MessageCreate]) {
if (message.member === null) return;
return new MessageAutomod(message);
}
}
|