Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech committed Nov 4, 2023
1 parent 5ae1bf2 commit d00816e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions commands/sendemail.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const {
ModalBuilder,
TextInputBuilder,
TextInputStyle,

} = require("discord.js");
const staff = require("../models/staff");
const Loading = require("../components/loading");
Expand Down Expand Up @@ -55,6 +56,7 @@ module.exports = {
modal.addComponents(firstActionRow, secondActionRow, thirdActionRow);

// Show the modal to the user
await interaction.deferReply();
await interaction.showModal(modal);
},
};
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit d00816e

Please sign in to comment.