blob: 4a33e967fc30f6e1c22a9513c6beb6187c8cbeed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { BotListener, CommandHandlerEvent, Emitter, type BotCommandHandlerEvents } from '#lib';
export default class SlashNotFoundListener extends BotListener {
public constructor() {
super('slashNotFound', {
emitter: Emitter.CommandHandler,
event: CommandHandlerEvent.SlashNotFound
});
}
public async exec(...[interaction]: BotCommandHandlerEvents[CommandHandlerEvent.SlashNotFound]) {
void this.client.console.info('slashNotFound', `<<${interaction?.commandName}>> could not be found.`);
}
}
|