poru 1.0.4 → 1.0.7

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.
package/.gitpod.yml ADDED
@@ -0,0 +1,8 @@
1
+ # This configuration file was automatically generated by Gitpod.
2
+ # Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
3
+ # and commit this file to your remote git repository to share the goodness with others.
4
+
5
+ tasks:
6
+ - init: npm install
7
+
8
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poru",
3
- "version": "1.0.4",
3
+ "version": "1.0.7",
4
4
  "description": "A stable and powefull lavalink client with so many features",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Node.js CHANGED
@@ -126,8 +126,7 @@ destroy(){
126
126
  }
127
127
 
128
128
  reconnect() {
129
- this.reconnect++;
130
- setTimeout(() => {
129
+ this.reconnect = setTimeout(() => {
131
130
  this.isConnected = false;
132
131
  this.ws.removeAllListeners();
133
132
  this.ws = null;
package/src/Player.js CHANGED
@@ -35,7 +35,7 @@ class Player extends EventEmitter {
35
35
 
36
36
  this.timestamp = Date.now();
37
37
 
38
- this.pause = false;
38
+ this.paused = false;
39
39
  this.position = 0;
40
40
 
41
41
 
@@ -60,7 +60,7 @@ class Player extends EventEmitter {
60
60
  ...packet.state,
61
61
 
62
62
  };
63
- this.manager.emit("playerUpdate", this, data);
63
+ this.manager.emit("playerUpdate", this, packet);
64
64
  });
65
65
  }
66
66
  async play() {