From cb4afbf2ae49be736445e70528da5b79fa8c71fe Mon Sep 17 00:00:00 2001 From: ThePedroo Date: Tue, 16 Apr 2024 07:34:06 -0300 Subject: [PATCH] fix: `player` -> `this` This commit fixes the root variable for accessing the player connection, fixing undeclared variable errors. --- src/connection/voiceHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection/voiceHandler.js b/src/connection/voiceHandler.js index 2d16c82..033b887 100644 --- a/src/connection/voiceHandler.js +++ b/src/connection/voiceHandler.js @@ -276,7 +276,7 @@ class VoiceConnection { stop() { if (!this.config.track) return this.config - if (this.connection.audioStream && player.connection.udp) this.connection.stop() + if (this.connection.audioStream && this.connection.udp) this.connection.stop() else this._stopTrack() }