mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-05 00:06:34 +02:00
init base
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
const { Events, InteractionType } = require("discord.js")
|
||||
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);
|
||||
};
|
||||
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