Skip to content

Commit

Permalink
fix: player -> this
Browse files Browse the repository at this point in the history
This commit fixes the root variable for accessing the player connection, fixing undeclared variable errors.
  • Loading branch information
ThePedroo committed Apr 16, 2024
1 parent c0daf78 commit cb4afbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection/voiceHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit cb4afbf

Please sign in to comment.