Skip to content

Commit

Permalink
deferReply sucks
Browse files Browse the repository at this point in the history
  • Loading branch information
jvnipers committed Jan 6, 2025
1 parent e5e00f4 commit 3ec6900
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/commands/System/ticket-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ module.exports = {
ephemeral: true,
});

interaction.deferReply({ ephemeral: true });

const channel = interaction.options.getChannel("channel");
const category = interaction.options.getChannel("category");

Expand Down Expand Up @@ -163,7 +161,7 @@ module.exports = {
ID: "tickets",
});
if (data) {
return await interaction.editReply({
return await interaction.reply({
content: "Tickets have already been setup",
ephemeral: true,
});
Expand All @@ -183,14 +181,14 @@ module.exports = {
],
components: [menu],
});
await interaction.editReply({
await interaction.reply({
content: `Your tickets system has been set up in ${channel}.`,
ephemeral: true,
});
}
} catch (err) {
console.error("Error executing command:", err);
await interaction.editReply({
await interaction.reply({
content: "There was an error while executing this command!",
ephemeral: true,
});
Expand Down

0 comments on commit 3ec6900

Please sign in to comment.