mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: dont overwrite guild_id when messages cache
This commit is contained in:
parent
2e35884946
commit
a0a70066ef
4
src/cache/index.ts
vendored
4
src/cache/index.ts
vendored
@ -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!)]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user