1
1
import { EventEmitter } from "events" ;
2
2
3
+ type Nullable < T > = T | null
4
+
3
5
export declare class Track {
4
6
constructor ( data : any , requester : any , node : Node ) ;
5
7
@@ -13,6 +15,7 @@ export declare class Track {
13
15
sourceName : string ;
14
16
title : string ;
15
17
uri : string ;
18
+ isrc : string | null
16
19
thumbnail : string | null ;
17
20
requester : any ;
18
21
} ;
@@ -459,6 +462,30 @@ type NodeInfoSemanticVersionObj = {
459
462
patch : number ;
460
463
}
461
464
465
+ export interface NodeLyricsResult {
466
+ /** The name of the source */
467
+ sourceName : string ;
468
+ /** The name of the provider */
469
+ provider : string ;
470
+ /** The Lyrics Text */
471
+ text : Nullable < string > ;
472
+ /** The Lyrics Lines */
473
+ lines : Array < NodeLyricsLine > ;
474
+ /** Additional plugin related Information */
475
+ plugin : object
476
+ }
477
+
478
+ interface NodeLyricsLine {
479
+ /** timestamp of the line in ms(milliseconds) */
480
+ timestamp : number ;
481
+ /** Duration of the line in ms(milliseconds) */
482
+ duration : number ;
483
+ /** The Lyric String */
484
+ line : string ;
485
+ /** Additional plugin related Information */
486
+ plugin : object
487
+ }
488
+
462
489
export declare class Node {
463
490
constructor ( riffy : Riffy , node : LavalinkNode , options : NodeOptions ) ;
464
491
public riffy : Riffy ;
@@ -488,7 +515,7 @@ export declare class Node {
488
515
489
516
public connected : boolean ;
490
517
public reconnecting : boolean ;
491
- public info : NodeInfo ;
518
+ public info : NodeInfo | { } ;
492
519
public stats : {
493
520
players : 0 ,
494
521
playingPlayers : 0 ,
0 commit comments