aqualink 2.20.0 → 2.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -231,11 +231,9 @@ class Player extends EventEmitter {
231
231
  _bindEvents() {
232
232
  this._boundPlayerUpdate = this._handlePlayerUpdate.bind(this)
233
233
  this._boundEvent = this._handleEvent.bind(this)
234
- this._boundPlayerMove = this._handleAquaPlayerMove.bind(this)
235
234
 
236
235
  this.on('playerUpdate', this._boundPlayerUpdate)
237
236
  this.on('event', this._boundEvent)
238
- this.aqua.on('playerMove', this._boundPlayerMove)
239
237
  }
240
238
 
241
239
  _startWatchdog() {
@@ -568,9 +566,7 @@ class Player extends EventEmitter {
568
566
  if (this._boundPlayerUpdate)
569
567
  this.removeListener('playerUpdate', this._boundPlayerUpdate)
570
568
  if (this._boundEvent) this.removeListener('event', this._boundEvent)
571
- if (this.aqua && this._boundPlayerMove)
572
- this.aqua.removeListener('playerMove', this._boundPlayerMove)
573
- this._boundPlayerUpdate = this._boundEvent = this._boundPlayerMove = null
569
+ this._boundPlayerUpdate = this._boundEvent = null
574
570
  this.removeAllListeners()
575
571
 
576
572
  if (this._updateBatcher) {
@@ -1167,12 +1163,6 @@ class Player extends EventEmitter {
1167
1163
  tryReconnect(1)
1168
1164
  }
1169
1165
 
1170
- _handleAquaPlayerMove(oldChannel, newChannel) {
1171
- if (_functions.toId(oldChannel) !== _functions.toId(this.voiceChannel))
1172
- return
1173
- this.voiceChannel = _functions.toId(newChannel)
1174
- }
1175
-
1176
1166
  send(data) {
1177
1167
  try {
1178
1168
  this.aqua.send({ op: 4, d: data })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aqualink",
3
- "version": "2.20.0",
3
+ "version": "2.20.1",
4
4
  "description": "An Lavalink/Nodelink client, focused in pure performance and features",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",