Files
gestion/events/client/interactionCreate.js
T
2024-02-13 23:28:33 +01:00

12 lines
347 B
JavaScript

const { Events, InteractionType } = require("discord.js");
module.exports = {
name: Events.InteractionCreate,
async run(client, interaction) {
if (interaction.type === InteractionType.ApplicationCommand) {
const command = client.commands.get(interaction.commandName);
await command.execute(interaction, client);
}
},
};