Files
karuta-starboard/events/interactionCreate.js
T

20 lines
466 B
JavaScript
Raw Normal View History

2025-07-19 05:01:14 +02:00
module.exports = {
name: 'interactionCreate',
async execute(interaction) {
if (!interaction.isChatInputCommand()) return;
const command = interaction.client.commands.get(interaction.commandName);
if (!command) return;
try {
await command.execute(interaction);
} catch (error) {
console.error(error);
await interaction.reply({
content: '❌ Error executing command.',
ephemeral: true
});
}
}
};