init base

This commit is contained in:
Tutur33
2024-02-13 23:28:33 +01:00
parent 3e79697d37
commit ab1520b104
6 changed files with 98 additions and 77 deletions
+8 -11
View File
@@ -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);
}
};
},
};