Update GUILD_UPDATE.ts

This commit is contained in:
ITOH
2021-04-12 11:47:47 +02:00
parent 84106e80ee
commit 1da85da246

View File

@@ -31,7 +31,7 @@ export async function handleGuildUpdate(data: DiscordGatewayPayload) {
const different = (cachedValue.length !== value.length) ||
cachedValue.find((val) => !value.includes(val)) ||
// TODO: check if this really works hehe
// @ts-ignore this works ts is wrong
// @ts-ignore typescript thinks that this is not an array
value.find((val) => !cachedValue.includes(val));
if (!different) return;
}