summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authordank074 <torresefrain10@gmail.com>2025-04-09 16:16:40 -0500
committerdank074 <torresefrain10@gmail.com>2025-04-09 16:16:40 -0500
commitf41164945e7ab2e400564de51f6d6c2d2b90ca5f (patch)
tree493a600a6fb64d7143aacd34afc9b98abcb44190 /src
parentfix missing properties in GUILD_CREATE for bots (diff)
downloadserver-ts-f41164945e7ab2e400564de51f6d6c2d2b90ca5f.tar.xz
add type to make sure payload is consistent with other GUILD_CREATE event
Diffstat (limited to 'src')
-rw-r--r--src/gateway/opcodes/Identify.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts

index 155dcb5a7..2798f3eb4 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), ),