File tree 1 file changed +2
-4
lines changed
discord-scripts/thread-management
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import {
31
31
32
32
// The maximum time between any two messages after which a thread is considered
33
33
// async.
34
- const MAX_HEURISTIC_SYNC_THREAD_DURATION = 60 * MINUTE // 60 * MINUTE
34
+ const MAX_HEURISTIC_SYNC_THREAD_DURATION = 12 * HOUR // 60 * MINUTE
35
35
// How frequently threads are checked for archive requirements.
36
36
const THREAD_CHECK_CADENCE = 12 * HOUR // 12 * HOUR
37
37
// Use a ThreadAutoArchiveDuration as we'll still lean on Discord to
@@ -368,9 +368,7 @@ async function checkThreadStatus(
368
368
if (
369
369
lastActiveTimestamp - ( firstActiveTimestamp ?? 0 ) >
370
370
( thread . autoArchiveDuration ?? 0 ) * MINUTE -
371
- /* AUTO_ARCHIVE_WARNING_LEAD_MINUTES */ ( thread . autoArchiveDuration ??
372
- 0 ) *
373
- MINUTE
371
+ AUTO_ARCHIVE_WARNING_LEAD_MINUTES * MINUTE
374
372
) {
375
373
await thread . send ( {
376
374
content :
You can’t perform that action at this time.
0 commit comments