From a0a70066efa0f349828a742d0a6849746ab6a17e Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Wed, 18 Dec 2024 20:57:27 -0400 Subject: [PATCH] fix: dont overwrite guild_id when messages cache --- src/cache/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cache/index.ts b/src/cache/index.ts index 687020f..713b755 100644 --- a/src/cache/index.ts +++ b/src/cache/index.ts @@ -320,7 +320,7 @@ export class Cache { relationshipsData[hashId] = []; } relationshipsData[hashId].push(id); - if (type !== 'overwrites') { + if (type !== 'overwrites' && type !== 'messages') { data.guild_id = guildId; } allData.push([this[type]!.hashId(id), this[type]!.parse(data, id, guildId!)]); @@ -410,7 +410,7 @@ export class Cache { relationshipsData[hashId] = []; } relationshipsData[hashId].push(id); - if (type !== 'overwrites') { + if (type !== 'overwrites' && type !== 'messages') { data.guild_id = guildId; } allData.push([this[type]!.hashId(id), this[type]!.parse(data, id, guildId!)]);