From eb934a37c387b3401d03b5fd3fc4988e2d15505b Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 8 Aug 2023 17:28:03 +0500 Subject: [PATCH] rename closed ticket to {name}-closed --- commands/Tickets/closeticket.js | 1 + commands/Tickets/createticketembed.js | 1 + 2 files changed, 2 insertions(+) diff --git a/commands/Tickets/closeticket.js b/commands/Tickets/closeticket.js index a6fad1db..4e564c5e 100644 --- a/commands/Tickets/closeticket.js +++ b/commands/Tickets/closeticket.js @@ -113,6 +113,7 @@ class CloseTicket extends BaseCommand { } await interaction.channel.permissionOverwrites.edit(interaction.member, { ViewChannel: false, SendMessages: null }); + await interaction.channel.setName(`${interaction.channel.name}-closed`); } }); diff --git a/commands/Tickets/createticketembed.js b/commands/Tickets/createticketembed.js index a3ed92b9..9aee9a61 100644 --- a/commands/Tickets/createticketembed.js +++ b/commands/Tickets/createticketembed.js @@ -168,6 +168,7 @@ class CreateTicketEmbed extends BaseCommand { } await interaction.channel.permissionOverwrites.edit(interaction.member, { ViewChannel: false, SendMessages: null }); + await interaction.channel.setName(`${interaction.channel.name}-closed`); } }); }