Socket
Socket
Sign inDemoInstall

shoukaku

Package Overview
Dependencies
7
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.2 to 2.1.3

2

package.json
{
"name": "shoukaku",
"version": "2.1.2",
"version": "2.1.3",
"description": "A lavalink wrapper that supports almost all libraries",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -190,6 +190,2 @@ const AbortController = require('abort-controller');

this.muted = self_mute;
if (!session_id) {
this.emit('connectionUpdate', voiceState.SESSION_ID_MISSING);
return;
}
this.sessionId = session_id;

@@ -208,3 +204,7 @@ this.node.emit('debug', this.node.name, `[Voice] <- [Discord] : State Update Received | Channel: ${this.channelId} Session ID: ${session_id} Guild: ${this.guildId}`);

}
if (this.serverUpdate && !data.endpoint.startsWith(this.region)) {
if (!this.sessionId) {
this.emit('connectionUpdate', voiceState.SESSION_ID_MISSING);
return;
}
if (this.region && !data.endpoint.startsWith(this.region)) {
this.moved = true;

@@ -211,0 +211,0 @@ this.node.emit('debug', this.node.name, `[Voice] <- [Discord] : Voice Region Moved | Old Region: ${this.region} Guild: ${this.guildId}`);

@@ -430,8 +430,6 @@ const EventEmitter = require('events');

}
else if (json.op === 'event') {
else if (json.op === 'event')
this._onPlayerEvent(json, socket);
}
else {
else
this.connection.node.emit('debug', this.connection.node.name, `[Player] -> [Node] : Unknown Message OP ${json.op} | Guild: ${this.connection.guildId}`);
}
}

@@ -460,8 +458,8 @@ /**

case 'WebSocketClosedEvent':
if (this.connection.reconnecting) break;
if (this.connection.moved) {
this.connection.moved = !this.connection.moved;
} else {
this.emit('closed', json);
socket.emit('playerClosed', this, json);
if (!this.connection.reconnecting) {
if (!this.connection.moved) {
this.emit('closed', json);
socket.emit('playerClosed', this, json);
} else
this.connection.moved = false;
}

@@ -475,3 +473,2 @@ break;

);
break;
}

@@ -478,0 +475,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc