mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
😐
This commit is contained in:
parent
42ad5216f6
commit
be58072e5c
@ -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);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user