poru 3.4.0 → 3.5.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poru",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
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
@@ -334,11 +334,13 @@ class Player extends EventEmitter {
334
334
  }
335
335
 
336
336
  if (this.queue.length === 0) {
337
+ this.isPlaying = false;
337
338
  return this.manager.emit("queueEnd", this, this.track, data);
338
339
  } else if (this.queue.length > 0) {
339
340
  this.manager.emit("trackEnd", this, this.currentTrack, data);
340
341
  return this.play();
341
342
  }
343
+ this.isPlaying = false;
342
344
  this.manager.emit("queueEnd", this, this.currentTrack, data);
343
345
  },
344
346
  TrackStuckEvent() {
package/src/Poru.js CHANGED
@@ -93,7 +93,7 @@ class Poru extends EventEmitter {
93
93
 
94
94
  if (identifier === "best") return this.leastUsedNodes;
95
95
 
96
- const node = this.nodes.get(indetifier);
96
+ const node = this.nodes.get(identifier);
97
97
  if (!node) throw new Error("The node identifier you provided is not found");
98
98
  if (!node.isConnected) node.connect();
99
99
  return node;
@@ -1,13 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
- patreon: # Replace with a single Patreon username
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: parasdev
7
- tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: # Replace with a single Liberapay username
10
- issuehunt: # Replace with a single IssueHunt username
11
- otechie: # Replace with a single Otechie username
12
- lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13
- custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']