From fdb09cbe03d45f72fe3413fde0debf5a79c69824 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Tue, 16 Nov 2021 18:40:19 +0100 Subject: [PATCH] fix(VoiceState): set streaming to false when the stream ended (#6992) --- src/structures/VoiceState.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/structures/VoiceState.js b/src/structures/VoiceState.js index 5a7b10772877..78d9bf551c52 100644 --- a/src/structures/VoiceState.js +++ b/src/structures/VoiceState.js @@ -83,7 +83,9 @@ class VoiceState extends Base { this.sessionId ??= null; } - if ('self_stream' in data) { + // The self_stream is property is omitted if false, check for another property + // here to avoid incorrectly clearing this when partial data is specified + if ('self_video' in data) { /** * Whether this member is streaming using "Screen Share" * @type {boolean}