From be58072e5cf03e28507926ef5f8502c49222e1e8 Mon Sep 17 00:00:00 2001 From: Isaac Date: Thu, 9 Feb 2023 22:23:08 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/buttons/close.js | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/buttons/close.js b/src/buttons/close.js index 3289047..292ae43 100644 --- a/src/buttons/close.js +++ b/src/buttons/close.js @@ -57,7 +57,6 @@ module.exports = class CloseButton extends Button { await client.tickets.acceptClose(interaction); } } else { - // TODO: reply try { await interaction.update({ components: [], @@ -75,28 +74,6 @@ module.exports = class CloseButton extends Button { } finally { // this should run regardless of whatever happens above client.tickets.$stale.delete(ticket.id); } - - // if (client.tickets.$stale.has(ticket.id)) { - // try { - // await interaction.channel.messages.edit( - // client.tickets.$stale.get(ticket.id).message.id, - // { - // components: [], - // embeds: [ - // new ExtendedEmbedBuilder({ - // iconURL: interaction.guild.iconURL(), - // text: ticket.guild.footer, - // }) - // .setColor(ticket.guild.errorColour) - // .setDescription(getMessage('ticket.close.rejected', { user: interaction.user.toString() })) - // .setFooter({ text: null }), - // ], - // }, - // ); - // } finally { // this should run regardless of whatever happens above - // client.tickets.$stale.delete(ticket.id); - // } - // } } } }