diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-02-17 18:54:16 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-02-17 18:54:16 +1100 |
commit | 407af95d94b5efb43c6a1f0849d92098b1cb8090 (patch) | |
tree | 1c9a41c86b0359be8c85d945017857e816bb54b1 /gateway | |
parent | Merge branch 'master' into maddyrtc (diff) | |
download | server-407af95d94b5efb43c6a1f0849d92098b1cb8090.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 'gateway')
-rw-r--r-- | gateway/src/schema/VoiceStateUpdateSchema.ts | 6 |
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 |