fix: dont overwrite guild_id when messages cache

This commit is contained in:
MARCROCK22 2024-12-18 20:57:27 -04:00
parent 2e35884946
commit a0a70066ef

4
src/cache/index.ts vendored
View File

@ -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!)]);