blob: 74e6fbea5c444d338a19fec4bec6927d81e93e5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { BotListener, Emitter, type BotClientEvents } from '#lib';
import { ChannelType, Events } from 'discord.js';
export default class MessageVerboseListener extends BotListener {
public constructor() {
super('messageVerbose', {
emitter: Emitter.Client,
event: Events.MessageCreate
});
}
public exec(...[message]: BotClientEvents[Events.MessageCreate]): void {
if (this.client.customReady) {
if (message.channel?.type === ChannelType.DM) return;
void this.client.console.verbose(
'messageVerbose',
`A message was sent by <<${message.author.tag}>> in <<${message.channel.name}>> in <<${message.guild!.name}>>.`
);
}
}
}
|