Files
gestion/loaders/events/client/interactionCreate.js
T
VALOU3336 9bd39c69ca grand commit que tutur attend ( marche pas le raidmode en dev)
sinon il y a pleins de truc comme les anti raid , des coorectif ect
2024-04-22 18:30:33 +02:00

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);
}
},
};