mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-05 02:05:45 +00:00
fix: send presences array (empty for now) in READY event data
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user