diff --git a/src/index.ts b/src/index.ts
index 4d348da7..36f602f8 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -43,6 +43,11 @@ along with this program. If not, see .
// Initial load of all commands
await getOrLoadAllCommands(false);
+ const sweepSettings = {
+ interval: 14400, // 4h
+ lifetime: 3600, // 1h
+ };
+
const CLIENT = new Client({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES],
presence: {
@@ -53,6 +58,10 @@ along with this program. If not, see .
},
],
},
+ sweepers: {
+ messages: sweepSettings,
+ threads: sweepSettings,
+ },
});
CLIENT.once("ready", () => {