mirror of
https://github.com/Art-Portal/April.git
synced 2024-11-16 11:37:37 +01:00
Change channel delete path
This commit is contained in:
parent
97d38c94e5
commit
558daa3541
@ -62,7 +62,7 @@ module.exports = {
|
||||
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: [] })
|
||||
setTimeout(() => {
|
||||
interaction.channel.delete(`Ticket supprimé par ${interaction.user.tag} (${interaction.user.id})`)
|
||||
interaction.guild.channels.delete(interaction.channel.id, `Ticket supprimé par ${interaction.user.tag} (${interaction.user.id})`)
|
||||
}, 5000)
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user