magmastream
Advanced tools
Comparing version 2.0.8 to 2.1.0
@@ -757,6 +757,7 @@ /// <reference types="node" /> | ||
/** | ||
* Emitted when a player queue ends. | ||
* @event Manager#queueEnd | ||
* Emitted when the state of the player has been changed. | ||
* https://github.com/Blackfort-Hosting/magmastream/issues/16 | ||
* @event Manager#playerStateUpdate | ||
*/ | ||
on(event: "queueEnd", listener: (player: Player, track: Track | UnresolvedTrack, payload: TrackEndEvent) => void): this; | ||
on(event: "playerStateUpdate", listener: (player: Player) => void): this; | ||
/** | ||
@@ -773,2 +774,12 @@ * Emitted when a player is moved to a new voice channel. | ||
/** | ||
* Emitted when a player queue ends. | ||
* @event Manager#queueEnd | ||
*/ | ||
on(event: "queueEnd", listener: (player: Player, track: Track | UnresolvedTrack, payload: TrackEndEvent) => void): this; | ||
/** | ||
* Emitted when a voice connection is closed. | ||
* @event Manager#socketClosed | ||
*/ | ||
on(event: "socketClosed", listener: (player: Player, payload: WebSocketClosedEvent) => void): this; | ||
/** | ||
* Emitted when a track starts. | ||
@@ -793,7 +804,2 @@ * @event Manager#trackStart | ||
on(event: "trackError", listener: (player: Player, track: Track | UnresolvedTrack, payload: TrackExceptionEvent) => void): this; | ||
/** | ||
* Emitted when a voice connection is closed. | ||
* @event Manager#socketClosed | ||
*/ | ||
on(event: "socketClosed", listener: (player: Player, payload: WebSocketClosedEvent) => void): this; | ||
} | ||
@@ -800,0 +806,0 @@ /** |
@@ -250,2 +250,3 @@ "use strict"; | ||
} | ||
this.manager.emit("playerStateUpdate", this); | ||
return this; | ||
@@ -270,2 +271,3 @@ } | ||
} | ||
this.manager.emit("playerStateUpdate", this); | ||
return this; | ||
@@ -305,2 +307,3 @@ } | ||
} | ||
this.manager.emit("playerStateUpdate", this); | ||
return this; | ||
@@ -355,2 +358,3 @@ } | ||
}); | ||
this.manager.emit("playerStateUpdate", this); | ||
return this; | ||
@@ -357,0 +361,0 @@ } |
{ | ||
"name": "magmastream", | ||
"version": "2.0.8", | ||
"version": "2.1.0", | ||
"description": "A user-friendly Lavalink client designed for NodeJS.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -38,5 +38,7 @@ # Magmastream | ||
- [Lava Jukebox](https://discord.com/api/oauth2/authorize?client_id=887651843742793779&permissions=-1&redirect_uri=https%3A%2F%2Fdiscord.gg%2F4ZaXbbYSTZ&response_type=code&scope=guilds.join%20bot%20applications.commands) | ||
| Name | Creator | | ||
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | | ||
| [Lava Jukebox](https://discord.com/api/oauth2/authorize?client_id=887651843742793779&permissions=-1&redirect_uri=https%3A%2F%2Fdiscord.gg%2F4ZaXbbYSTZ&response_type=code&scope=guilds.join%20bot%20applications.commands) | Abel Purnwasy | | ||
If you want to add your own bot create a pull request with your bot added. | ||
If you want to add your own bot create a pull request with your bot added. Please add your full name. | ||
@@ -43,0 +45,0 @@ ## Contributors |
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
106574
2675
55