From 567c5d2c7f41dae7d7fec9946a7dd2ac1b10cc2a Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sat, 13 Sep 2025 19:24:54 +0700 Subject: [PATCH] fix(bots/discord): error in cache `keepOverLimit` comparison --- bots/discord/src/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/discord/src/context.ts b/bots/discord/src/context.ts index 3c77eb0..fce8afd 100644 --- a/bots/discord/src/context.ts +++ b/bots/discord/src/context.ts @@ -100,7 +100,7 @@ export const discord = { GuildMessageManager: { maxSize: 0, // Always keep messages posted by the client in cache - keepOverLimit: message => message.author.id === message.client.user.id, + keepOverLimit: message => message.author?.id === message.client.user.id, }, // Unneeded cache MessageManager: 0,