aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/contextCommands/contextCommandNotFound.ts
blob: da364ed04bfa5b998507952a67cafc87e75502a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { BotListener, ContextCommandHandlerEvent, Emitter } from '#lib';
import { type ContextMenuCommandHandlerEvents } from 'discord-akairo';

export default class ContextCommandNotFoundListener extends BotListener {
	public constructor() {
		super('contextCommandNotFound', {
			emitter: Emitter.ContextMenuCommandHandler,
			event: ContextCommandHandlerEvent.NotFound
		});
	}

	public async exec(...[interaction]: ContextMenuCommandHandlerEvents[ContextCommandHandlerEvent.NotFound]) {
		void this.client.console.info('contextCommandNotFound', `<<${interaction?.commandName}>> could not be found.`);
	}
}