LavalinkManagerEvents
The events from the lavalink Manager
Events
Event | Type | Description | Defined in |
---|---|---|---|
ChaptersLoaded | (player : Player , track : UnresolvedTrack | Track , payload : SponsorBlockChaptersLoaded ) => void | SPONSORBLOCK-PLUGIN EVENT Emitted when Chapters are loaded Link https://github.com/topi314/Sponsorblock-Plugin#chaptersloaded Manager#trackError | src/structures/Types/Manager.ts:158 |
ChapterStarted | (player : Player , track : UnresolvedTrack | Track , payload : SponsorBlockChapterStarted ) => void | SPONSORBLOCK-PLUGIN EVENT Emitted when a specific Chapter starts playing Link https://github.com/topi314/Sponsorblock-Plugin#chapterstarted Manager#trackError | src/structures/Types/Manager.ts:150 |
debug | (eventKey : DebugEvents , eventData : object ) => void | Lavalink-Client Debug Event Emitted for several erros, and logs within lavalink-client, if managerOptions.advancedOptions.enableDebugEvents is true Useful for debugging the lavalink-client Manager#debug | src/structures/Types/Manager.ts:167 |
LyricsFound | (player : Player , track : UnresolvedTrack | Track , payload : LyricsFoundEvent ) => void | Emitted when a Lyrics is found Link https://github.com/topi314/LavaLyrics Manager#LyricsFound | src/structures/Types/Manager.ts:181 |
LyricsLine | (player : Player , track : UnresolvedTrack | Track , payload : LyricsLineEvent ) => void | Emitted when a Lyrics line is received Link https://github.com/topi314/LavaLyrics Manager#LyricsLine | src/structures/Types/Manager.ts:174 |
LyricsNotFound | (player : Player , track : UnresolvedTrack | Track , payload : LyricsNotFoundEvent ) => void | Emitted when a Lyrics is not found Link https://github.com/topi314/LavaLyrics Manager#LyricsNotFound | src/structures/Types/Manager.ts:188 |
playerCreate | (player : Player ) => void | Emitted when a Player is created. Manager#playerCreate | src/structures/Types/Manager.ts:43 |
playerDeafChange | (player : Player , selfDeafed : boolean , serverDeafed : boolean ) => void | Emitted when the player’s selfDeafed or serverDeafed state changed (true -> false | false -> true) Manager#playerDeafChange |
playerDestroy | (player : Player , destroyReason ?: string ) => void | Emitted when a Player get’s destroyed Manager#playerDestroy | src/structures/Types/Manager.ts:72 |
playerDisconnect | (player : Player , voiceChannelId : string ) => void | Emitted when a Player is disconnected from a channel. Manager#playerDisconnect | src/structures/Types/Manager.ts:53 |
playerMove | (player : Player , oldVoiceChannelId : string , newVoiceChannelId : string ) => void | Emitted when a Player is moved within the channel. Manager#playerMove | src/structures/Types/Manager.ts:48 |
playerMuteChange | (player : Player , selfMuted : boolean , serverMuted : boolean ) => void | Emitted when the player’s selfMuted or serverMuted state changed (true -> false | false -> true) Manager#playerMuteChange |
playerQueueEmptyCancel | (player : Player ) => void | Emitted when the player’s queue got empty, and the timeout got cancelled becuase a track got re-added to it. Manager#playerQueueEmptyEnd | src/structures/Types/Manager.ts:114 |
playerQueueEmptyEnd | (player : Player ) => void | Emitted when the player’s queue got empty, and the timeout finished leading to destroying the player Manager#playerQueueEmptyEnd | src/structures/Types/Manager.ts:108 |
playerQueueEmptyStart | (player : Player , timeoutMs : number ) => void | Emitted when the player’s queue got empty, and the timeout started Manager#playerQueueEmptyStart | src/structures/Types/Manager.ts:102 |
playerSocketClosed | (player : Player , payload : WebSocketClosedEvent ) => void | Emitted when a Node-Socket got closed for a specific Player. Usually emits when the audio websocket to discord is closed, This can happen for various reasons (normal and abnormal), e.g. when using an expired voice server update. 4xxx codes are usually bad. So this is just information, normally lavalink should handle disconnections Discord Docs: Link https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-close-event-codes Lavalink Docs: Link https://lavalink.dev/api/websocket.html#websocketclosedevent Manager#playerSocketClosed | src/structures/Types/Manager.ts:67 |
playerSuppressChange | (player : Player , suppress : boolean ) => void | Emitted when the player’s suppressed (true -> false | false -> true) Manager#playerSuppressChange |
playerUpdate | (oldPlayerJson : PlayerJson , newPlayer : Player ) => void | Always emits when the player (on lavalink side) got updated Manager#playerUpdate | src/structures/Types/Manager.ts:78 |
playerVoiceJoin | (player : Player , userId : string ) => void | Emitted, when a user joins the voice channel, while there is a player existing Manager#playerQueueEmptyStart | src/structures/Types/Manager.ts:120 |
playerVoiceLeave | (player : Player , userId : string ) => void | Emitted, when a user leaves the voice channel, while there is a player existing Manager#playerQueueEmptyEnd | src/structures/Types/Manager.ts:126 |
queueEnd | (player : Player , track : UnresolvedTrack | Track , payload : TrackEndEvent | TrackStuckEvent | TrackExceptionEvent ) => void | Emitted when the Playing finished and no more tracks in the queue. Manager#queueEnd | src/structures/Types/Manager.ts:38 |
SegmentSkipped | (player : Player , track : UnresolvedTrack | Track , payload : SponsorBlockSegmentSkipped ) => void | SPONSORBLOCK-PLUGIN EVENT Emitted when a specific Segment was skipped Link https://github.com/topi314/Sponsorblock-Plugin#segmentskipped Manager#trackError | src/structures/Types/Manager.ts:142 |
SegmentsLoaded | (player : Player , track : UnresolvedTrack | Track , payload : SponsorBlockSegmentsLoaded ) => void | SPONSORBLOCK-PLUGIN EVENT Emitted when Segments are loaded Link https://github.com/topi314/Sponsorblock-Plugin#segmentsloaded Manager#trackError | src/structures/Types/Manager.ts:134 |
trackEnd | (player : Player , track : Track , payload : TrackEndEvent ) => void | Emitted when a Track finished. Manager#trackEnd | src/structures/Types/Manager.ts:23 |
trackError | (player : Player , track : UnresolvedTrack | Track , payload : TrackExceptionEvent ) => void | Emitted when a Track errored. Manager#trackError | src/structures/Types/Manager.ts:33 |
trackStart | (player : Player , track : Track , payload : TrackStartEvent ) => void | Emitted when a Track started playing. Manager#trackStart | src/structures/Types/Manager.ts:18 |
trackStuck | (player : Player , track : Track , payload : TrackStuckEvent ) => void | Emitted when a Track got stuck while playing. Manager#trackStuck | src/structures/Types/Manager.ts:28 |