From f7e9a14d635219925bf1323ab563aabd821d9200 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:02:51 +1100 Subject: [PATCH] It didn't put the reason, so useless. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 64cf068..bfdd477 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,7 +33,7 @@ setInterval(async()=>{ for await (const thread of forum.threads.cache.values()) { await thread.messages.fetch(); if (!thread.archived && thread.lastMessage.createdTimestamp <= Date.now() - 1555200000) {// check if thread is inactive for over 18 days - await thread.delete('Thread has been inactive for 18 days'); + await thread.delete(); Logger.console('log', 'ThreadTimer', `"#${thread.name}" has been deleted due to inactivity for 18 days`); } }