From 0dd739fbb7a55f4193725352ac80fe9ab4e830fa Mon Sep 17 00:00:00 2001 From: MaeveMcKeane <90427217+MaeveMcKeane@users.noreply.github.com> Date: Sat, 6 Nov 2021 23:30:09 +0000 Subject: [PATCH] Update interactionCreate.js Fixed an issue where if the command type was a contextmenu it would not run. --- events/interactionCreate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); } });