summary refs log tree commit diff
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-12-04 16:56:39 +0100
committerCyberL1 <cyber.hf18@gmail.com>2025-12-04 16:56:39 +0100
commit863f31fa35ccb8ce1b069db3487adf2a301f5fa0 (patch)
tree25aab25e344bf58f5e7ec563425d7b4bfdfd2065
parentClean up cloud attachment debug logs (diff)
downloadserver-ts-863f31fa35ccb8ce1b069db3487adf2a301f5fa0.tar.xz
fix: send presences array (empty for now) in READY event data
-rw-r--r--src/gateway/opcodes/Identify.ts1
-rw-r--r--src/util/interfaces/Event.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts

index 352fd6fe..0c36829e 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts
@@ -536,6 +536,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { version: 0, // TODO }, private_channels: channels, + presences: [], // TODO: Send actual data session_id: this.session_id, country_code: user.settings.locale, // TODO: do ip analysis instead users: Array.from(users), diff --git a/src/util/interfaces/Event.ts b/src/util/interfaces/Event.ts
index b70b92f8..24157efd 100644 --- a/src/util/interfaces/Event.ts +++ b/src/util/interfaces/Event.ts
@@ -69,6 +69,7 @@ export interface ReadyEventData { v: number; user: UserPrivate; private_channels: ReadyPrivateChannel[]; // this will be empty for bots + presences: Presence[]; session_id: string; // resuming guilds: IReadyGuildDTO[] | GuildOrUnavailable[]; // depends on capability analytics_token?: string;