chore: Ajout du transcript fonctionnel pour les tickets

This commit is contained in:
UltraLionFr
2025-08-26 14:41:28 +02:00
parent bb22e65117
commit 4f1a0379ea
21 changed files with 778 additions and 41 deletions
+2 -6
View File
@@ -1,6 +1,5 @@
const { PermissionFlagsBits } = require('discord.js');
const { closeTicket } = require('../handlers/database');
const { config, lang } = require('../handlers/configLoader');
const { closeTicketWithTranscript } = require('../handlers/ticketCloser');
module.exports = {
id: 'closeTicket',
@@ -17,13 +16,10 @@ module.exports = {
});
}
const channel = interaction.channel;
await interaction.reply({ content: lang.ticket.closing });
setTimeout(async () => {
closeTicket(channel.id);
await channel.delete().catch(() => {});
await closeTicketWithTranscript(interaction.channel, interaction.user);
}, 5000);
},
};