This commit is contained in:
Marius Begby committed 2023-08-30 21:47:50 +02:00
1 parent d0f1e940a5
commit 6ebf7b9bd3
30 files changed
+174 -71

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import { SlashCommandBuilder } from 'discord.js';
import { BaseCommandInteraction, BaseSlashCommandParams } from '../../../types/interactionTypes';
export class TestCommandInteraction extends BaseCommandInteraction {
constructor() {
const data = new SlashCommandBuilder().setName('test').setDescription('Test command');
super(data);
}
async execute(params: BaseSlashCommandParams): Promise<void> {
const { executionId, interaction } = params;
const logger = this.getLogger('test.ts', 'test', executionId, interaction);
logger.info('test command executed');
logger.info(`${interaction.user.tag} executed test command`);
logger.info(`Execution ID: ${executionId}`);
logger.info(this.embedOptions.icons.success + ' Icon success from config.');
return;
}
}
export default new TestCommandInteraction();