mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 15:07:26 +02:00
12 lines
351 B
JavaScript
12 lines
351 B
JavaScript
const { Events, InteractionType } = require("discord.js");
|
|
|
|
module.exports = {
|
|
name: Events.InteractionCreate,
|
|
async execute(client, interaction) {
|
|
if (interaction.type === InteractionType.ApplicationCommand) {
|
|
const command = client.commands.get(interaction.commandName);
|
|
await command.execute(interaction, client);
|
|
}
|
|
},
|
|
};
|