diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 19e5a41..62c3e50 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -48,6 +48,10 @@ client.on("interactionCreate", async (interaction) => { let dataToProcess = JSON.stringify(commandData[0]) let parsedData = JSON.parse(dataToProcess) + + if (interaction.commandName == "modal-example"){ + console.log("Modal - Skipping defer") + } else { // If the command is private, set ephemeral true else, set false console.log(parsedData) if (parsedData.private == true) { @@ -60,8 +64,7 @@ client.on("interactionCreate", async (interaction) => { ephemeral: false }).catch(() => {}); } - - + } const cmd = client.slashCommands.get(interaction.commandName); if (!cmd) return interaction.followUp({