Comparing version 2.1.3 to 2.1.4
{ | ||
"name": "shoukaku", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "A lavalink wrapper that supports almost all libraries", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -218,3 +218,3 @@ const EventEmitter = require('events'); | ||
throw new Error('Can\'t join this channel. This connection is already connected'); | ||
if (player?.connection.reconnecting) | ||
if (player?.connection.reconnecting) | ||
throw new Error('Can\'t join this channel. This connection is currently force-reconnecting'); | ||
@@ -344,3 +344,3 @@ try { | ||
const players = [...this.players.values()]; | ||
const moved = this.moveOnDisconnect && this.shoukaku.nodes.size > 1; | ||
const moved = this.moveOnDisconnect && [...this.shoukaku.nodes.values()].filter(node => node.group === this.group).length > 1; | ||
for (const player of players) { | ||
@@ -347,0 +347,0 @@ moved ? player.moveNode(this.shoukaku._getIdeal(this.group).name) : player.connection.disconnect(); |
@@ -86,3 +86,3 @@ const EventEmitter = require('events'); | ||
*/ | ||
/** | ||
/** | ||
* Emitted when a node becomes ready | ||
@@ -124,2 +124,37 @@ * @event Shoukaku#ready | ||
*/ | ||
/** | ||
* Emitted when a track from the player has been started | ||
* @event Shoukaku#playerTrackStart | ||
* @param {ShoukakuPlayer} player The player that sent the track start event | ||
* @param {Object} payload The payload from lavalink | ||
* @memberof Shoukaku | ||
*/ | ||
/** | ||
* Emitted when a track from the player has been ended | ||
* @event Shoukaku#playerTrackEnd | ||
* @param {ShoukakuPlayer} player The player that sent the track end event | ||
* @param {Object} payload The payload from lavalink | ||
* @memberof Shoukaku | ||
*/ | ||
/** | ||
* Emitted when a player get exception | ||
* @event Shoukaku#playerException | ||
* @param {ShoukakuPlayer} player The player that get the exception | ||
* @param {Object} payload The payload from lavalink | ||
* @memberof Shoukaku | ||
*/ | ||
/** | ||
* Emitted when a player was closed | ||
* @event Shoukaku#playerClosed | ||
* @param {ShoukakuPlayer} player The player that get closed | ||
* @param {Object} payload The payload from lavalink | ||
* @memberof Shoukaku | ||
*/ | ||
/** | ||
* Emitted when a player get payload update from lavalink | ||
* @event Shoukaku#playerUpdate | ||
* @param {ShoukakuPlayer} player The player that get the payload | ||
* @param {Object} payload The payload from lavalink | ||
* @memberof Shoukaku | ||
*/ | ||
@@ -126,0 +161,0 @@ /** |
@@ -5,3 +5,3 @@ import * as Constants from "./enums"; | ||
export * as Libraries from './libraries'; | ||
export * from './enums'; | ||
export * as Constants from './enums'; | ||
export { version } from '../package.json'; | ||
@@ -8,0 +8,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
104889
2508