Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "shoukaku", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A lavalink client for Discord.js v12 only", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,3 +9,3 @@ ## Shoukaku | ||
<p align="center"> | ||
<img src="https://vignette.wikia.nocookie.net/kancolle/images/c/c8/Shoukaku_Full.png/revision/latest"> | ||
<img src="https://vignette.wikia.nocookie.net/kancolle/images/9/97/Shoukaku_Christmas_Full.png/revision/latest/"> | ||
</p> | ||
@@ -51,3 +51,3 @@ | ||
### Issue / Bug Found? | ||
### Issues or Bugs | ||
Feel free to open an issue in the [Issues](https://github.com/Deivu/Shoukaku/issues) section of this repository. | ||
@@ -60,9 +60,9 @@ | ||
### Starting a Lavalink Server. | ||
### Starting a Lavalink Server | ||
[View Lavalink README here](https://github.com/Frederikam/Lavalink/blob/master/README.md) | ||
### Discord.js actual implementation. | ||
### Discord.js example implementation | ||
[View Kongou's source code here](https://github.com/Deivu/Kongou) | ||
### Really simple example of using this. | ||
### Really simple example of using this | ||
```js | ||
@@ -69,0 +69,0 @@ const { Client } = require('discord.js'); |
@@ -184,3 +184,6 @@ const { RawRouter, ReconnectRouter } = require('./router/ShoukakuRouter.js'); | ||
node.removeAllListeners(); | ||
node.ws.close(4011, 'Remove node executed.'); | ||
if (node.ws) { | ||
node.ws.removeAllListeners(); | ||
node.ws.close(4011, 'Remove node executed.'); | ||
} | ||
this.emit('disconnected', name, reason); | ||
@@ -257,3 +260,6 @@ }); | ||
const node = this.nodes.get(name); | ||
if (!resumed) node._executeCleaner(); | ||
if (!resumed) { | ||
node._executeCleaner() | ||
.catch((error) => this.emit('error', name, error)); | ||
} | ||
this.emit('ready', name, resumed); | ||
@@ -260,0 +266,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65678
1506