const { ChatInputCommandInteraction } = require("discord.js") module.exports = { name: "interactionCreate", /** * * @param {ChatInputCommandInteraction} interaction */ execute(interaction, client) { if (!interaction.isChatInputCommand()) return; const command = client.commands.get(interaction.commandName); if (!command) return interaction.reply({ content: "This command is not a slash command!", ephemeral: true, }) if (command.developer && interaction.user.id !== "603543838681989141" && "642308656217456641") return interaction.reply({ content: "This command is only available to the developer. ", ephemeral: true }) command.execute(interaction, client); console.log(`${interaction} was just used`) } }