summary refs log tree commit diff
path: root/gateway/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-02-17 18:54:16 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-02-17 18:54:16 +1100
commitd491bcd8bed78703331bc6550cf3d52e3647e764 (patch)
treeaf0eb8e0514c7b903a040fa75ed74fd0825079ab /gateway/src
parentMerge branch 'master' into maddyrtc (diff)
downloadserver-d491bcd8bed78703331bc6550cf3d52e3647e764.tar.xz
Discord.js gateway connection when connecting to voice will close 4002 decode error due to not sending self_video field. temp solution: remove it from server.
this commit will probably be reverted later; I'm just trying to see if a proper ( not self signed ) SSL cert on slowcord.maddy.k.vu will fix this SSL error I'm receiving.
Diffstat (limited to '')
-rw-r--r--gateway/src/schema/VoiceStateUpdateSchema.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/gateway/src/schema/VoiceStateUpdateSchema.ts b/gateway/src/schema/VoiceStateUpdateSchema.ts

index 9efa191e..c046600d 100644 --- a/gateway/src/schema/VoiceStateUpdateSchema.ts +++ b/gateway/src/schema/VoiceStateUpdateSchema.ts
@@ -3,7 +3,7 @@ export const VoiceStateUpdateSchema = { $channel_id: String, self_mute: Boolean, self_deaf: Boolean, - self_video: Boolean, + $self_video: Boolean, //required in docs but bots don't always send it }; export interface VoiceStateUpdateSchema { @@ -11,5 +11,5 @@ export interface VoiceStateUpdateSchema { channel_id?: string; self_mute: boolean; self_deaf: boolean; - self_video: boolean; -} + self_video?: boolean; +} \ No newline at end of file