import { InteractionType, Client, Interaction, Collection } from "discord.js"; module.exports = { name: 'interactionCreate', async execute(client: Client & {commands: Collection}, interaction: Interaction, ) { if (interaction.type === InteractionType.ApplicationCommand) { const command = client.commands.get(interaction.commandName); command.execute(client, interaction); } } }