mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-07 23:04:47 +02:00
loader add
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
};
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user