diff --git a/commands/sendemail.js b/commands/sendemail.js index ad6c7aa..38537dd 100644 --- a/commands/sendemail.js +++ b/commands/sendemail.js @@ -4,6 +4,7 @@ const { ModalBuilder, TextInputBuilder, TextInputStyle, + } = require("discord.js"); const staff = require("../models/staff"); const Loading = require("../components/loading"); @@ -55,6 +56,7 @@ module.exports = { modal.addComponents(firstActionRow, secondActionRow, thirdActionRow); // Show the modal to the user + await interaction.deferReply(); await interaction.showModal(modal); }, }; diff --git a/index.js b/index.js index 0a1dbe6..fc5537a 100644 --- a/index.js +++ b/index.js @@ -90,7 +90,7 @@ client.on(Events.InteractionCreate, async (interaction) => { ephemeral: true, }); } else { - await interaction.reply({ + await interaction.editReply({ content: "There was an error while executing this command!", ephemeral: true, });