magmastream 2.9.3-dev.12 → 2.9.3-dev.13

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.
@@ -210,7 +210,6 @@ class MemoryQueue extends Array {
210
210
  this.splice(0);
211
211
  this.previous.length = 0;
212
212
  this.current = null;
213
- this.manager = null;
214
213
  }
215
214
  /**
216
215
  * The total duration of the queue in milliseconds.
@@ -273,11 +273,11 @@ class Player {
273
273
  this.voiceReceiverWsClient.close();
274
274
  this.voiceReceiverWsClient = null;
275
275
  }
276
- await this.queue.destroy();
277
276
  if (disconnect) {
278
277
  await this.disconnect().catch(() => { });
279
278
  }
280
279
  await this.node.rest.destroyPlayer(this.guildId).catch(() => { });
280
+ await this.queue.destroy();
281
281
  this.nowPlayingMessage = undefined;
282
282
  this.manager.emit(Enums_1.ManagerEventTypes.PlayerDestroy, this);
283
283
  const deleted = this.manager.players.delete(this.guildId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magmastream",
3
- "version": "2.9.3-dev.12",
3
+ "version": "2.9.3-dev.13",
4
4
  "description": "A user-friendly Lavalink client designed for NodeJS.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",