mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
WIP
This commit is contained in:
1 parent
d0f1e940a5
commit
6ebf7b9bd3
30 files changed
+174
-71
No files matched your search
@@ -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();
|
||||
Reference in new issue
Block a user