fix: send presences array (empty for now) in READY event data

This commit is contained in:
CyberL1
2025-12-04 16:56:39 +01:00
parent a149bd06d7
commit 863f31fa35
2 changed files with 2 additions and 0 deletions

View File

@@ -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),

View File

@@ -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;