Skip to content

Commit

Permalink
fix(gateway): Add stubs for latest clients
Browse files Browse the repository at this point in the history
  • Loading branch information
V3L0C1T13S committed Dec 25, 2023
1 parent 01f191d commit f24e21a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/common/sparkle/schemas/Gateway/Ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ export interface ReadyData extends Omit<GatewayReadyDispatchData, "application"
indicators_confirmed: tutorialTypes[],
} | null,
session_type: "normal",
auth: {
authenticator_types: number[],
},
notification_settings: {
flags: number,
}
}

export type ReadyPayload = ReadyData | GatewayReadyDispatchData;
Expand All @@ -140,4 +146,5 @@ export interface ReadySupplementalData {
embedded_activities: unknown[],
}[],
disclose: unknown[],
game_invites: unknown[],
}
7 changes: 7 additions & 0 deletions src/gateway/util/Listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,12 @@ export async function startListener(
tutorial: null,
session_type: "normal",
api_code_version: 1,
auth: {
authenticator_types: [2, 3],
},
notification_settings: {
flags: 0,
},
consents: {
personalization: {
consented: false, // never gonna fix this lol
Expand Down Expand Up @@ -625,6 +631,7 @@ export async function startListener(
embedded_activities: [],
}))),
disclose: [],
game_invites: [],
};

await Dispatch(this, GatewayDispatchCodes.ReadySupplemental, supplementalData);
Expand Down

0 comments on commit f24e21a

Please sign in to comment.