fix: inactivity warning spam

This commit is contained in:
Isaac
2023-05-27 21:11:03 +01:00
parent c3620309bd
commit f69bc9a185
2 changed files with 2 additions and 1 deletions

View File

@@ -1159,6 +1159,7 @@ module.exports = class TicketManager {
closedBy = null,
reason = null,
}) {
if (this.$stale.has(ticketId)) this.$stale.delete(ticketId);
let ticket = await this.getTicket(ticketId);
const getMessage = this.client.i18n.getLocale(ticket.guild.locale);
this.$count.categories[ticket.categoryId].total -= 1;