From ee42ad0e8ae8762194dc7f24c9c42751f1206674 Mon Sep 17 00:00:00 2001 From: tippfehlr Date: Sun, 10 Mar 2024 00:37:16 +0100 Subject: [PATCH] perf: adjust max cache settings --- src/modules/bot.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/bot.ts b/src/modules/bot.ts index d1d6be1..18133d5 100644 --- a/src/modules/bot.ts +++ b/src/modules/bot.ts @@ -27,14 +27,14 @@ export const client = new Discord.Client({ ...Options.DefaultMakeCacheSettings, MessageManager: 0, UserManager: { - maxSize: 5000, + maxSize: 25000, keepOverLimit: user => user.id === user.client.user.id, }, GuildMemberManager: { - maxSize: 1000, + maxSize: 5000, keepOverLimit: member => member.id === member.client.user.id, }, - PresenceManager: 1000, + PresenceManager: 50000, }), sweepers: { ...Options.DefaultSweeperSettings,