This commit is contained in:
Isaac 2023-02-09 22:23:08 +00:00
parent 42ad5216f6
commit be58072e5c
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -57,7 +57,6 @@ module.exports = class CloseButton extends Button {
await client.tickets.acceptClose(interaction); await client.tickets.acceptClose(interaction);
} }
} else { } else {
// TODO: reply
try { try {
await interaction.update({ await interaction.update({
components: [], components: [],
@ -75,28 +74,6 @@ module.exports = class CloseButton extends Button {
} finally { // this should run regardless of whatever happens above } finally { // this should run regardless of whatever happens above
client.tickets.$stale.delete(ticket.id); 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);
// }
// }
} }
} }
} }