Skip to content

Commit fb6d28a

Browse files
fix!: setVoiceChannel prematurely sets voiceChannel, failing move channel detection
The setVoiceChannel sets this.voiceChannel to the new channel resulting in underlying code at Connection Module failing to detect moving of channels and The Player remains paused forever ♾️ until the Dev/User unpauses it
1 parent a510bc4 commit fb6d28a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build/structures/Player.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ class Player extends EventEmitter {
403403
throw new ReferenceError(`Player is already connected to ${channel}`);
404404
}
405405

406-
this.voiceChannel = channel;
406+
// Well, Don't Update it here, So that Riffy can detect the Voice Channel change based off VoiceState received from Discord and update it accordingly.
407+
// this.voiceChannel = channel;
407408

408409
if (options) {
409410
this.mute = options.mute ?? this.mute;

0 commit comments

Comments
 (0)