fix: serveur transcript fonctionnel une fois le ticket fermé
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user