mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 17:23:08 +02:00
Revert "fix: don't close tickets twice"
This reverts commit a73cc2bdd4
.
This commit is contained in:
parent
a73cc2bdd4
commit
df725185eb
@ -18,7 +18,7 @@ module.exports = class extends Listener {
|
|||||||
where: { id: channel.id },
|
where: { id: channel.id },
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!ticket || ticket.open) return;
|
if (!ticket?.open) return;
|
||||||
|
|
||||||
await client.tickets.finallyClose(ticket.id, { reason: 'channel deleted' });
|
await client.tickets.finallyClose(ticket.id, { reason: 'channel deleted' });
|
||||||
this.client.log.info(`Closed ticket ${ticket.id} because the channel was deleted`);
|
this.client.log.info(`Closed ticket ${ticket.id} because the channel was deleted`);
|
||||||
|
Loading…
Reference in New Issue
Block a user