11import { EventEmitter } from "events" ;
22
33type Nullable < T > = T | null ;
4- type Prettify < T > =
4+ type Prettify < T > =
55 [ T ] extends [ object ]
6- ? { [ K in keyof T ] : Prettify < T [ K ] > }
7- : T ;
6+ ? { [ K in keyof T ] : Prettify < T [ K ] > }
7+ : T ;
88
9- type PrettifyWithNull < T > =
10- [ T ] extends [ object ]
9+ type PrettifyWithNull < T > =
10+ [ T ] extends [ object ]
1111 ? { [ K in keyof T ] : PrettifyWithNullOrUndefined < T [ K ] > } & { }
1212 : ( null extends T ? ( Exclude < T , null > | null ) : never ) ;
1313
1414type PrettifyWithNullOrUndefined < T > =
15- [ T ] extends [ object ]
15+ [ T ] extends [ object ]
1616 ? { [ K in keyof T ] : PrettifyWithNullOrUndefined < T [ K ] > } & { }
1717 : ( null extends T ? ( Exclude < T , null > | null ) : ( undefined extends T ? ( Exclude < T , undefined > | undefined ) : T ) ) ;
1818
@@ -144,7 +144,7 @@ export declare class Player extends EventEmitter {
144144 * @since 1.0.9
145145 */
146146 public readonly connectionTimeout : number ;
147-
147+
148148 /**
149149 * @warn Lazily (defined; Only when autoplay is called/used.) Initialized.
150150 */
@@ -195,7 +195,7 @@ export declare class Player extends EventEmitter {
195195
196196 /**
197197 * @description clears All custom Data set on the Player
198- */
198+ */
199199 public clearData ( ) : this;
200200 private send ( data : any ) : void ;
201201
@@ -540,7 +540,7 @@ export declare class Riffy extends EventEmitter {
540540 */
541541 public readonly migrationStrategyFn ?: Function ;
542542 public defaultSearchPlatform : string ;
543-
543+
544544 public restVersion : RiffyOptions [ "restVersion" ] ;
545545
546546 /**
@@ -765,8 +765,8 @@ type NodeInfo = {
765765} | {
766766 node : string ;
767767 voice : {
768- name : string ;
769- version : string ;
768+ name : string ;
769+ version : string ;
770770 } ;
771771 isNodelink : boolean ;
772772}
@@ -934,34 +934,34 @@ export declare class Node {
934934 */
935935 getCurrentTrack : < TPlugin extends LyricPluginWithoutLavaLyrics | ( string & { } ) > ( guildId : string , skipTrackSource : boolean , plugin ?: TPlugin ) => Promise < TPlugin extends LyricPluginWithoutLavaLyrics ? LyricPluginWithoutLavaLyricsResult : NodeLyricsResult | null > ;
936936 }
937-
937+
938938 /**
939939 * Nodelink Mixer API (Works Only when Node is hosted with [Nodelink Server](https://nodelink.js.org))
940940 * @description The Audio Mixer allows overlaying auxiliary audio tracks (like TTS, sound effects, or background music) on top of the main active track.
941941 */
942942 mixer : {
943- /**
944- * Check if Node is hosted with Nodelink Server
945- */
946- check : ( ) => boolean ;
947- /**
948- * Adds a new audio track to be mixed over the current playback.
949- * @param {string } guildId
950- * @param {AddMixLayerOptions } mixLayerOptions
951- */
952- addMixLayer : ( guildId : string , mixLayerOptions : AddMixLayerOptions ) => Promise < NodelinkMixLayer > ;
953- /**
954- * Retrieves a list of currently active mix layers.
955- */
956- getActiveMixLayers : ( guildId : string ) => Promise < NodelinkMixLayer [ ] > ;
957- /**
958- * Update Mix Layer Volume
959- */
960- updateMixLayerVolume : ( guildId : string , mixId : string , volume : number ) => Promise < void > ;
961- /**
962- * Remove Mix Layer
963- */
964- removeMixLayer : ( guildId : string , mixId : string ) => Promise < void > ;
943+ /**
944+ * Check if Node is hosted with Nodelink Server
945+ */
946+ check : ( ) => boolean ;
947+ /**
948+ * Adds a new audio track to be mixed over the current playback.
949+ * @param {string } guildId
950+ * @param {AddMixLayerOptions } mixLayerOptions
951+ */
952+ addMixLayer : ( guildId : string , mixLayerOptions : AddMixLayerOptions ) => Promise < NodelinkMixLayer > ;
953+ /**
954+ * Retrieves a list of currently active mix layers.
955+ */
956+ getActiveMixLayers : ( guildId : string ) => Promise < NodelinkMixLayer [ ] > ;
957+ /**
958+ * Update Mix Layer Volume
959+ */
960+ updateMixLayerVolume : ( guildId : string , mixId : string , volume : number ) => Promise < void > ;
961+ /**
962+ * Remove Mix Layer
963+ */
964+ removeMixLayer : ( guildId : string , mixId : string ) => Promise < void > ;
965965 }
966966
967967 public connect ( ) : void ;
@@ -978,39 +978,39 @@ export declare class Node {
978978 * Options for adding a mix layer.
979979 */
980980export type AddMixLayerOptions = {
981- track : {
982- /**
983- * Base64 encoded track string (optional if identifier provided)
984- */
985- encoded ?: string ;
981+ track : {
982+ /**
983+ * Base64 encoded track string (optional if identifier provided)
984+ */
985+ encoded ?: string ;
986986
987- /**
988- * Track identifier (optional if encoded provided)
989- */
990- identifier ?: string ;
987+ /**
988+ * Track identifier (optional if encoded provided)
989+ */
990+ identifier ?: string ;
991+
992+ /**
993+ * (Optional) Track User Data
994+ */
995+ userData ?: string ;
996+ } ;
991997
992998 /**
993- * (Optional) Track User Data
999+ * Float 0.0 to 1.0 (Default: 0.8)
9941000 */
995- userData ?: string ;
996- } ;
997-
998- /**
999- * Float 0.0 to 1.0 (Default: 0.8)
1000- */
1001- volume ?: number ;
1001+ volume ?: number ;
10021002} ;
10031003
10041004export type NodelinkMixLayer = {
1005- id : string ;
1006- track : {
1007- encoded : string ;
1008- identifier : string ;
1009- userData : string ;
1010- } ;
1011- volume : number ;
1012- position ?: number ;
1013- startTime ?: number ;
1005+ id : string ;
1006+ track : {
1007+ encoded : string ;
1008+ identifier : string ;
1009+ userData : string ;
1010+ } ;
1011+ volume : number ;
1012+ position ?: number ;
1013+ startTime ?: number ;
10141014} ;
10151015
10161016export type FilterOptions = {
@@ -1236,11 +1236,11 @@ export declare class Connection {
12361236 * @private
12371237 * @since 1.0.9
12381238 */
1239- private deferred : {
1240- promise : Promise < void > ;
1241- resolve : ( value ?: void | PromiseLike < void > ) => void
1239+ private deferred : {
1240+ promise : Promise < void > ;
1241+ resolve : ( value ?: void | PromiseLike < void > ) => void
12421242 } | null ;
1243-
1243+
12441244 /**
12451245 * Tracks the promise for the active REST update to the Node
12461246 * @private
@@ -1252,18 +1252,18 @@ export declare class Connection {
12521252 * @since 1.0.9
12531253 */
12541254 public establishing : boolean ;
1255-
1255+
12561256 /**
12571257 * Checks if we have all necessary voice credentials.
12581258 */
12591259 get isReady ( ) : boolean ;
1260-
1260+
12611261 /**
12621262 * Waits for the connection to be ready and for any active voice updates to the Node to complete.
12631263 * Optimization: Returns immediately if ready and idle to save resources.
12641264 */
12651265 public resolve ( ) : Promise < any > ;
1266-
1266+
12671267 /**
12681268 * Checks if ready, performs the update, and manages the resolution flow.
12691269 */
@@ -1279,4 +1279,4 @@ export declare class Connection {
12791279 } ) : void ;
12801280
12811281 private updatePlayerVoiceData ( ) : void ;
1282- }
1282+ }
0 commit comments