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 | 9974b1a08ebff67d815bdce26a8fbb5e028b1a09 (patch) | |
tree | 0e9eaba71b4f6fd76e66372a94af1d4daf0806fa /src/gateway/opcodes | |
parent | Remove Slowcord demo user restrictions (diff) | |
download | server-9974b1a08ebff67d815bdce26a8fbb5e028b1a09.tar.xz |
Premium tier 0 SKU from staging
Diffstat (limited to 'src/gateway/opcodes')
-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 |