Skip to content

Commit f1a38bf

Browse files
authored
Change thread async duration (#321)
2 parents 57c6fad + 942bb40 commit f1a38bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

discord-scripts/thread-management/check-thread-archiving.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131

3232
// The maximum time between any two messages after which a thread is considered
3333
// async.
34-
const MAX_HEURISTIC_SYNC_THREAD_DURATION = 60 * MINUTE // 60 * MINUTE
34+
const MAX_HEURISTIC_SYNC_THREAD_DURATION = 12 * HOUR // 60 * MINUTE
3535
// How frequently threads are checked for archive requirements.
3636
const THREAD_CHECK_CADENCE = 12 * HOUR // 12 * HOUR
3737
// Use a ThreadAutoArchiveDuration as we'll still lean on Discord to
@@ -368,9 +368,7 @@ async function checkThreadStatus(
368368
if (
369369
lastActiveTimestamp - (firstActiveTimestamp ?? 0) >
370370
(thread.autoArchiveDuration ?? 0) * MINUTE -
371-
/* AUTO_ARCHIVE_WARNING_LEAD_MINUTES */ (thread.autoArchiveDuration ??
372-
0) *
373-
MINUTE
371+
AUTO_ARCHIVE_WARNING_LEAD_MINUTES * MINUTE
374372
) {
375373
await thread.send({
376374
content:

0 commit comments

Comments
 (0)