Skip to content

Commit d2df3b6

Browse files
committed
notify asker on thread archive
1 parent d3145ce commit d2df3b6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/modules/helpthread.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,12 @@ export class HelpThreadModule extends Module {
150150
this.manuallyArchivedThreads.delete(thread.id)
151151
)
152152
return;
153+
const threadData = (await HelpThread.findOne(thread.id))!;
153154
console.log(`Help thread expired:`, thread);
154-
await thread.send({ embeds: [threadExpireEmbed] });
155+
await thread.send({
156+
content: `<@${threadData.ownerId}>`,
157+
embeds: [threadExpireEmbed],
158+
});
155159
this.manuallyArchivedThreads.add(thread.id);
156160
await this.archiveThread(thread);
157161
}
@@ -181,6 +185,7 @@ export class HelpThreadModule extends Module {
181185
await msg.react('✅');
182186
if (!isOwner)
183187
await msg.channel.send({
188+
content: `<@${threadData.ownerId}>`,
184189
embeds: [helperCloseEmbed(msg.member!)],
185190
});
186191
this.manuallyArchivedThreads.add(thread.id);

0 commit comments

Comments
 (0)