Skip to content

Commit a51c331

Browse files
authored
Prefix closed thread names (#183)
1 parent b661678 commit a51c331

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/helpthread.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export class HelpThreadModule extends Module {
115115
return;
116116
await thread.send({ embeds: [threadExpireEmbed] });
117117
this.manuallyArchivedThreads.add(thread.id);
118+
await thread.setName(`[Closed]: ${thread.name}`);
118119
await thread.setArchived(true);
119120
}
120121

@@ -138,6 +139,7 @@ export class HelpThreadModule extends Module {
138139
) {
139140
await msg.react('✅');
140141
this.manuallyArchivedThreads.add(thread.id);
142+
await thread.setName(`[Closed]: ${thread.name}`);
141143
await thread.setArchived(true);
142144
} else {
143145
return await sendWithMessageOwnership(

0 commit comments

Comments
 (0)