From ef4f43f44bf62a4aad9afe660afe1fd114a92a81 Mon Sep 17 00:00:00 2001 From: Bloodcloak <59000966+bloodcloak@users.noreply.github.com> Date: Fri, 7 Jun 2024 23:13:57 -0400 Subject: [PATCH] followup ephemeral workaround --- interactions/buttons/operation/confirm.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interactions/buttons/operation/confirm.js b/interactions/buttons/operation/confirm.js index 8f5fa27..503704e 100644 --- a/interactions/buttons/operation/confirm.js +++ b/interactions/buttons/operation/confirm.js @@ -5,7 +5,7 @@ const discordTranscripts = require("discord-html-transcripts"); module.exports = { id: "confirm_close", async execute(interaction) { - await interaction.deferReply(); + await interaction.deferReply({ ephemeral: true }); const channel = interaction.channel; const footer = interaction.message.embeds[0].footer.text; @@ -19,13 +19,13 @@ module.exports = { const hasRole = member.roles.cache.some((role) => settings.roles.includes(role.id)); if (!hasRole) { - return interaction.followUp({ content: "You don't have permission to close this ticket.", ephemeral: true }); + return interaction.followUp({ content: "You do not have permission to close this ticket.", ephemeral: true }); } } else { if (interaction.user.id !== footer.split(" | ")[0]) { - return interaction.followUp({ content: "You don't have permission to close this ticket.", ephemeral: true }); + return interaction.followUp({ content: "You do not have permission to close this ticket.", ephemeral: true }); } } @@ -63,7 +63,7 @@ module.exports = { logChannel.send({ embeds: [embed] }); logChannel.send({ files: [transcript] }); - interaction.followUp({ content: `Closing this ticket in 5 seconds...` }); + interaction.followUp({ content: `Closing this ticket in 5 seconds...`, ephemeral: false }); setTimeout(async () => { await channel.delete();