add notification_settings object to ready

This commit is contained in:
Puyodead1 2024-05-26 16:01:35 -04:00
parent 2028b25902
commit 939d1bd8d5
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
4 changed files with 7 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -439,6 +439,10 @@ export async function onIdentify(this: WebSocket, data: Payload) {
tutorial: null,
session_type: "normal", // TODO
auth_session_id_hash: "", // TODO
notification_settings: {
// ????
flags: 0,
},
};
// Send READY

View File

@ -129,6 +129,9 @@ export interface ReadyEventData {
| "REQUIRE_CAPTCHA" // TODO: allow these to be triggered
| "TOS_UPDATE_ACKNOWLEDGMENT"
| "AGREEMENTS";
notification_settings: {
flags: number;
};
}
export interface ReadyEvent extends Event {