From 691ed973f1090c9707bbbc0d3369b6028468691c Mon Sep 17 00:00:00 2001 From: itohatweb Date: Fri, 7 May 2021 14:27:37 +0000 Subject: [PATCH] Commit from GitHub Actions (Lint) --- src/handlers/guilds/GUILD_UPDATE.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/handlers/guilds/GUILD_UPDATE.ts b/src/handlers/guilds/GUILD_UPDATE.ts index f323fe705..d973d74da 100644 --- a/src/handlers/guilds/GUILD_UPDATE.ts +++ b/src/handlers/guilds/GUILD_UPDATE.ts @@ -8,12 +8,12 @@ import { snowflakeToBigint } from "../../util/bigint.ts"; export async function handleGuildUpdate( data: DiscordGatewayPayload, - shardId: number + shardId: number, ) { const payload = data.d as Guild; const oldGuild = await cacheHandlers.get( "guilds", - snowflakeToBigint(payload.id) + snowflakeToBigint(payload.id), ); if (!oldGuild) return; @@ -40,8 +40,7 @@ export async function handleGuildUpdate( if (!cachedValue && !value) return; if (Array.isArray(cachedValue) && Array.isArray(value)) { - const different = - cachedValue.length !== value.length || + const different = cachedValue.length !== value.length || cachedValue.find((val) => !value.includes(val)) || value.find((val) => !cachedValue.includes(val)); if (!different) return;