mirror of
https://github.com/Art-Portal/April.git
synced 2025-01-13 15:03:40 +01:00
Add ticket closing logs
This commit is contained in:
parent
c83ff309bd
commit
8b6a5faaef
@ -61,9 +61,13 @@ module.exports = {
|
||||
case 'confirmDelete':
|
||||
if (!interaction.member.roles.cache.has('778016554066640896')) return interaction.reply({ content: "Tu n'a pas la permission de faire ça!", ephemeral: true });
|
||||
await interaction.editReply({ content: "Le ticket va être supprimé dans 5 secondes !", components: [] })
|
||||
|
||||
const logchannel = await interaction.guild.channels.fetch('1036589658647314502');
|
||||
await logchannel.send({ content: `${interaction.channel.name} fermé par <@${interaction.user.id}> (${interaction.user.id}` });
|
||||
setTimeout(() => {
|
||||
interaction.guild.channels.delete(interaction.channel.id, `Ticket supprimé par ${interaction.user.tag} (${interaction.user.id})`)
|
||||
}, 5000)
|
||||
}, 5000);
|
||||
|
||||
break;
|
||||
|
||||
case 'cancelDelete':
|
||||
|
Loading…
x
Reference in New Issue
Block a user