From f41164945e7ab2e400564de51f6d6c2d2b90ca5f Mon Sep 17 00:00:00 2001 From: dank074 Date: Wed, 9 Apr 2025 16:16:40 -0500 Subject: [PATCH] add type to make sure payload is consistent with other GUILD_CREATE event --- src/gateway/opcodes/Identify.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 155dcb5a..2798f3eb 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -32,6 +32,7 @@ import { DefaultUserGuildSettings, EVENTEnum, Guild, + GuildCreateEvent, GuildOrUnavailable, IdentifySchema, Intents, @@ -464,7 +465,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { s: this.sequence++, d: { ...new ReadyGuildDTO(x).toJSON(), - }, + } as GuildCreateEvent["data"], })?.catch((e) => console.error(`[Gateway] error when sending bot guilds`, e), ),