Update close.js

This commit is contained in:
1tzEmerald authored and GitHub committed 2024-11-09 02:37:14 +00:00
1 parent 1bb343e49a
commit 357a85fa3d
1 file changed
+1 -2
+1 -2
View File
@@ -229,8 +229,7 @@ async function handleCloseTicket(interaction, reason, ticket, TicketData) {
if (interaction.channel.type === Discord.ChannelType.GuildText) {
await interaction.channel.delete();
} else if (interaction.channel.type === Discord.ChannelType.PrivateThread) {
await interaction.channel.setLocked(true);
await interaction.channel.setArchived(true);
await interaction.channel.delete();
}
} catch (err) {
console.error("Error handling ticket close:", err);