aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/client/djsError.ts
blob: 23d8b331f7ebade067abb9a8380ae18932156ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { BotListener, Emitter, type BotClientEvents } from '#lib';
import { Events } from 'discord.js';

export default class DjsErrorListener extends BotListener {
	public constructor() {
		super('djsError', {
			emitter: Emitter.Client,
			event: Events.Error
		});
	}

	public async exec(...[error]: BotClientEvents[Events.Error]): Promise<void> {
		void this.client.console.superVerbose('dc.js-error', error);
	}
}