blob: ee4d8a6631c29b9233fe6fca2563a5b805192ca5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { BotListener, Emitter, type BotClientEvents } from '#lib';
export default class DiscordJsDebugListener extends BotListener {
public constructor() {
super('akairoDebug', {
emitter: Emitter.Client,
event: 'akairoDebug'
});
}
public async exec(...[message, ...other]: BotClientEvents['debug']): Promise<void> {
if (other.length && !message.includes('[registerInteractionCommands]'))
void this.client.console.superVerboseRaw('akairoDebug', message, ...other);
else void this.client.console.superVerbose('akairoDebug', message);
}
}
|