diff --git a/events/interactionCreate.js b/events/interactionCreate.js index b2c3468..d2b4e05 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -26,6 +26,6 @@ client.on("interactionCreate", async (interaction) => { if (interaction.isContextMenu()) { await interaction.deferReply({ ephemeral: false }); const command = client.slashCommands.get(interaction.commandName); - if (command) command.run(client, interaction); + if (command) command.run({client, interaction}); } });