(utils): Slice threads to 100 characters & await thread edits.

This commit is contained in:
2026-10-09 08:57:32 +08:00
parent eecfde1568
commit 5173b3fd2a
3 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export default {
await interaction.editReply({ content: 'Ticket closed.' });
channel.edit({
name: `[CLOSED] ${channel.name}`,
name: `[CLOSED] ${channel.name}`.slice(0, 100),
archived: true,
locked: true
});
+1 -1
View File
@@ -21,7 +21,7 @@ export default {
await interaction.reply({ flags: [MessageFlags.Ephemeral], content: 'Ticket closed.' });
channel.edit({
name: `[CLOSED] ${channel.name}`,
name: `[CLOSED] ${channel.name}`.slice(0, 100),
archived: true,
locked: true
});