rename closed ticket to {name}-closed

This commit is contained in:
Jonny_Bro (Nikita) 2023-08-08 17:28:03 +05:00
parent ce30dae7fa
commit eb934a37c3
No known key found for this signature in database
GPG key ID: 28B0D27F8DD5A4C9
2 changed files with 2 additions and 0 deletions

View file

@ -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`);
}
});

View file

@ -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`);
}
});
}