poru 3.5.0 → 3.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Player.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poru",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "A stable and powerfull lavalink client around node.js",
5
5
  "main": "index.js",
6
6
  "typings": "./typings/index.d.ts",
package/src/Player.js CHANGED
@@ -64,6 +64,8 @@ class Player extends EventEmitter {
64
64
 
65
65
  this.currentTrack = this.queue.shift();
66
66
 
67
+ try{
68
+
67
69
  if (!this.currentTrack.track) {
68
70
  this.currentTrack = await this.currentTrack.resolve(this.manager);
69
71
  }
@@ -84,6 +86,12 @@ class Player extends EventEmitter {
84
86
  );
85
87
 
86
88
  return this;
89
+
90
+ }catch(e){
91
+
92
+ this.manager.emit("trackError", this, this.currentTrack, null);
93
+
94
+ }
87
95
  }
88
96
 
89
97
  stop() {