Update close.js
This commit is contained in:
1 parent
1bb343e49a
commit
357a85fa3d
1 file changed
+1
-2
+1
-2
@@ -229,8 +229,7 @@ async function handleCloseTicket(interaction, reason, ticket, TicketData) {
|
|||||||
if (interaction.channel.type === Discord.ChannelType.GuildText) {
|
if (interaction.channel.type === Discord.ChannelType.GuildText) {
|
||||||
await interaction.channel.delete();
|
await interaction.channel.delete();
|
||||||
} else if (interaction.channel.type === Discord.ChannelType.PrivateThread) {
|
} else if (interaction.channel.type === Discord.ChannelType.PrivateThread) {
|
||||||
await interaction.channel.setLocked(true);
|
await interaction.channel.delete();
|
||||||
await interaction.channel.setArchived(true);
|
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Error handling ticket close:", err);
|
console.error("Error handling ticket close:", err);
|
||||||
|
|||||||
Reference in new issue
Block a user