diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-17 17:38:33 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-17 17:44:30 +1100 |
commit | e7a6be0639cfbe94ce1afcfb9fef8c58147d69a2 (patch) | |
tree | fb8a2ed2f6758dde4c797d3c357d221fd062ce8e /src/gateway | |
parent | Remove Slowcord demo user restrictions (diff) | |
download | server-e7a6be0639cfbe94ce1afcfb9fef8c58147d69a2.tar.xz |
Premium tier 0 SKU from staging
Diffstat (limited to 'src/gateway')
-rw-r--r-- | src/gateway/opcodes/Identify.ts | 1 | ||||
-rw-r--r-- | src/gateway/opcodes/VoiceStateUpdate.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 6e65dd44..60b5da4c 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -37,6 +37,7 @@ import { Recipient } from "@fosscord/util"; export async function onIdentify(this: WebSocket, data: Payload) { clearTimeout(this.readyTimeout); + // TODO: is this needed now that we use `json-bigint`? if (typeof data.d?.client_state?.highest_last_message_id === "number") data.d.client_state.highest_last_message_id += ""; check.call(this, IdentifySchema, data.d); diff --git a/src/gateway/opcodes/VoiceStateUpdate.ts b/src/gateway/opcodes/VoiceStateUpdate.ts index daefc504..42e76312 100644 --- a/src/gateway/opcodes/VoiceStateUpdate.ts +++ b/src/gateway/opcodes/VoiceStateUpdate.ts @@ -62,7 +62,7 @@ export async function onVoiceStateUpdate(this: WebSocket, data: Payload) { }); } - // 'Fix' for this one voice state error + // 'Fix' for this one voice state error. TODO: Find out why this is sent if (!voiceState.guild_id) return; //TODO the member should only have these properties: hoisted_role, deaf, joined_at, mute, roles, user |