fix: serveur transcript fonctionnel une fois le ticket fermé

This commit is contained in:
UltraLionFr
2025-08-27 21:43:20 +02:00
parent 224f37b374
commit effa111ac6
+3 -1
View File
@@ -107,7 +107,9 @@ module.exports = {
}); });
scheduleTicketClosure(interaction.channel, alertDuration, async () => { scheduleTicketClosure(interaction.channel, alertDuration, async () => {
await closeTicketWithTranscript(interaction.channel, interaction.user); const channel = await client.channels.fetch(interaction.channel.id).catch(() => null);
if (!channel) return;
await closeTicketWithTranscript(channel, interaction.user);
}); });
}, },
}; };