mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-04-07 21:41:51 +03:00
Revert "fix: don't close tickets twice"
This reverts commit a73cc2bdd45dd3629ed714b3c3e4aea4df3c0054.
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…
x
Reference in New Issue
Block a user