File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,13 @@ export class Node {
244
244
player ,
245
245
player . current ,
246
246
)
247
+
248
+ this . manager . emit (
249
+ "queueEnd" ,
250
+ player ,
251
+ player . current
252
+ )
253
+
247
254
this . manager . emit (
248
255
"debug" ,
249
256
"Moonlink.js > Player " +
@@ -255,6 +262,12 @@ export class Node {
255
262
if ( ! player . queue . size ) {
256
263
player . current = null ;
257
264
player . queue . clear ( ) ;
265
+
266
+ this . manager . emit (
267
+ "queueEnd" ,
268
+ player ,
269
+ player . current
270
+ )
258
271
259
272
this . manager . emit (
260
273
"debug" ,
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ export interface IEvents {
59
59
) => void ;
60
60
trackStuck : ( player : Player , track : Track , threshold : number ) => void ;
61
61
trackException : ( player : Player , track : Track , exception : any ) => void ;
62
+ queueEnd : ( player : Player , track ?: any ) => void ;
62
63
socketClosed : (
63
64
player : Player ,
64
65
code : number ,
You can’t perform that action at this time.
0 commit comments