lavalink-client 2.9.11 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -410,7 +410,7 @@ declare const NodeSymbol: unique symbol;
410
410
  */
411
411
  declare function parseLavalinkConnUrl(connectionUrl: string): {
412
412
  authorization: string;
413
- nodeType: NodeTypes;
413
+ nodeType: NodeType;
414
414
  id: string;
415
415
  host: string;
416
416
  port: number;
@@ -1537,7 +1537,7 @@ type SponsorBlockSegment = "sponsor" | "selfpromo" | "interaction" | "intro" | "
1537
1537
  */
1538
1538
  interface LavalinkNodeOptions {
1539
1539
  /** Specify the Node-Type of this node. Default: Lavalink */
1540
- nodeType?: NodeTypes;
1540
+ nodeType?: NodeType;
1541
1541
  /** The Lavalink Server-Ip / Domain-URL */
1542
1542
  host: string;
1543
1543
  /** The Lavalink Connection Port */
@@ -1832,7 +1832,10 @@ declare enum ReconnectionState {
1832
1832
  PENDING = "PENDING",
1833
1833
  DESTROYING = "DESTROYING"
1834
1834
  }
1835
- type NodeTypes = "Lavalink" | "NodeLink";
1835
+ declare enum NodeType {
1836
+ Lavalink = "Lavalink",
1837
+ NodeLink = "NodeLink"
1838
+ }
1836
1839
 
1837
1840
  declare class FilterManager {
1838
1841
  static EQList: {
@@ -2891,7 +2894,7 @@ declare class Player {
2891
2894
  }
2892
2895
 
2893
2896
  declare class NodeLinkNode extends LavalinkNode {
2894
- nodeType: "NodeLink";
2897
+ nodeType: NodeType;
2895
2898
  constructor(options: LavalinkNodeOptions, manager: NodeManager);
2896
2899
  /**
2897
2900
  * Uses the gapless feature to set the next track to be played.
@@ -3064,7 +3067,7 @@ declare class LavalinkNode {
3064
3067
  private heartBeatPongTimestamp;
3065
3068
  private heartBeatInterval?;
3066
3069
  private pingTimeout?;
3067
- nodeType: NodeTypes;
3070
+ nodeType: NodeType;
3068
3071
  isAlive: boolean;
3069
3072
  static _NodeLinkClass: unknown;
3070
3073
  /** The provided Options of the Node */
@@ -3677,6 +3680,13 @@ declare class LavalinkNode {
3677
3680
  * @param {LyricsNotFoundEvent} payload The payload of the event
3678
3681
  */
3679
3682
  private LyricsNotFound;
3683
+ /**
3684
+ * @private
3685
+ * util function to check if a provided source is valid with current node.
3686
+ * @param {LavalinkSearchPlatform} src
3687
+ * @returns {boolean} True if provided source is valid.
3688
+ */
3689
+ private isLavaSrcSource;
3680
3690
  }
3681
3691
 
3682
3692
  declare class NodeManager extends EventEmitter {
@@ -3749,13 +3759,13 @@ declare class NodeManager extends EventEmitter {
3749
3759
  * @param options The options for the node
3750
3760
  * @returns The node that was created
3751
3761
  */
3752
- createNode<T extends LavalinkNode | NodeLinkNode>(options: LavalinkNodeOptions): T;
3762
+ createNode<T extends LavalinkNode | NodeLinkNode>(options: LavalinkNodeOptions | NodeLinkNode | LavalinkNode): T;
3753
3763
  /**
3754
3764
  * Get the nodes sorted for the least usage, by a sorttype
3755
3765
  * @param sortType The type of sorting to use
3756
3766
  * @returns
3757
3767
  */
3758
- leastUsedNodes(sortType?: "memory" | "cpuLavalink" | "cpuSystem" | "calls" | "playingPlayers" | "players"): LavalinkNode[];
3768
+ leastUsedNodes(sortType?: "memory" | "cpuLavalink" | "cpuSystem" | "calls" | "playingPlayers" | "players", filterForNodeTypes?: (NodeType | NodeLinkNode | LavalinkNode)[]): LavalinkNode[];
3759
3769
  /**
3760
3770
  * Delete a node from the nodeManager and destroy it
3761
3771
  * @param node The node to delete
@@ -3775,10 +3785,10 @@ declare class NodeManager extends EventEmitter {
3775
3785
  deleteNode(node: LavalinkNodeIdentifier | LavalinkNode | NodeLinkNode, movePlayers?: boolean): void;
3776
3786
  /**
3777
3787
  * Get a node from the nodeManager
3778
- * @param node The node to get
3788
+ * @param node The node to get either by idetnifier, by class or by enum
3779
3789
  * @returns The node that was retrieved
3780
3790
  */
3781
- getNode(node: LavalinkNodeIdentifier | LavalinkNode | NodeLinkNode): LavalinkNode | NodeLinkNode | undefined;
3791
+ getNode(node: LavalinkNodeIdentifier | LavalinkNode | NodeLinkNode | NodeType): LavalinkNode | NodeLinkNode | undefined;
3782
3792
  }
3783
3793
 
3784
3794
  /**
@@ -4038,7 +4048,7 @@ type PlayerConstructor<T extends Player = Player> = new (options: PlayerOptions,
4038
4048
  /** Manager Options used to create the manager */
4039
4049
  interface ManagerOptions<CustomPlayerT extends Player = Player> {
4040
4050
  /** The Node Options, for all Nodes! (on init) */
4041
- nodes: LavalinkNodeOptions[];
4051
+ nodes: (LavalinkNodeOptions | NodeLinkNode | LavalinkNode)[];
4042
4052
  /** @async The Function to send the voice connection changes from Lavalink to Discord */
4043
4053
  sendToShard: (guildId: string, payload: GuildShardPayload) => void;
4044
4054
  /** The Bot Client's Data for Authorization */
@@ -4169,48 +4179,50 @@ declare class LavalinkManager<CustomPlayerT extends Player = Player> extends Eve
4169
4179
  * port: 2333,
4170
4180
  * id: "testnode"
4171
4181
  * },
4182
+ * // you can also use the util like this, and it will return a valid node option object. must start with: lavalink:// | nodelink://
4183
+ * // parseLavalinkConnUrl("nodelink://<nodeId>:<nodeAuthorization(Password)>@<NodeHost>:<NodePort>")
4172
4184
  * sendToShard(guildId, payload) => client.guilds.cache.get(guildId)?.shard?.send(payload),
4173
- * client: {
4174
- * id: process.env.CLIENT_ID,
4175
- * username: "TESTBOT"
4185
+ * ],
4186
+ * client: {
4187
+ * id: process.env.CLIENT_ID,
4188
+ * username: "TESTBOT"
4189
+ * },
4190
+ * // optional Options:
4191
+ * autoSkip: true,
4192
+ * playerOptions: {
4193
+ * applyVolumeAsFilter: false,
4194
+ * clientBasedPositionUpdateInterval: 150,
4195
+ * defaultSearchPlatform: "ytmsearch",
4196
+ * allowCustomSources: false,
4197
+ * volumeDecrementer: 0.75,
4198
+ * //requesterTransformer: YourRequesterTransformerFunction,
4199
+ * onDisconnect: {
4200
+ * autoReconnect: true,
4201
+ * destroyPlayer: false
4176
4202
  * },
4177
- * // optional Options:
4178
- * autoSkip: true,
4179
- * playerOptions: {
4180
- * applyVolumeAsFilter: false,
4181
- * clientBasedPositionUpdateInterval: 150,
4182
- * defaultSearchPlatform: "ytmsearch",
4183
- * allowCustomSources: false,
4184
- * volumeDecrementer: 0.75,
4185
- * //requesterTransformer: YourRequesterTransformerFunction,
4186
- * onDisconnect: {
4187
- * autoReconnect: true,
4188
- * destroyPlayer: false
4189
- * },
4190
- * onEmptyQueue: {
4191
- * destroyAfterMs: 30_000,
4192
- * //autoPlayFunction: YourAutoplayFunction,
4193
- * },
4194
- * useUnresolvedData: true
4203
+ * onEmptyQueue: {
4204
+ * destroyAfterMs: 30_000,
4205
+ * //autoPlayFunction: YourAutoplayFunction,
4195
4206
  * },
4196
- * queueOptions: {
4197
- * maxPreviousTracks: 25,
4198
- * //queueStore: yourCustomQueueStoreManagerClass,
4199
- * //queueChangesWatcher: yourCustomQueueChangesWatcherClass
4200
- * },
4201
- * linksBlacklist: [],
4202
- * linksWhitelist: [],
4203
- * advancedOptions: {
4204
- * maxFilterFixDuration: 600_000,
4205
- * debugOptions: {
4206
- * noAudio: false,
4207
- * playerDestroy: {
4208
- * dontThrowError: false,
4209
- * debugLogs: false
4210
- * }
4207
+ * useUnresolvedData: true
4208
+ * },
4209
+ * queueOptions: {
4210
+ * maxPreviousTracks: 25,
4211
+ * //queueStore: yourCustomQueueStoreManagerClass,
4212
+ * //queueChangesWatcher: yourCustomQueueChangesWatcherClass
4213
+ * },
4214
+ * linksBlacklist: [],
4215
+ * linksWhitelist: [],
4216
+ * advancedOptions: {
4217
+ * maxFilterFixDuration: 600_000,
4218
+ * debugOptions: {
4219
+ * noAudio: false,
4220
+ * playerDestroy: {
4221
+ * dontThrowError: false,
4222
+ * debugLogs: false
4211
4223
  * }
4212
4224
  * }
4213
- * ]
4225
+ * }
4214
4226
  * })
4215
4227
  * ```
4216
4228
  */
@@ -4339,4 +4351,4 @@ declare const LavalinkPlugins: {
4339
4351
  /** Lavalink Sources regexes for url validations */
4340
4352
  declare const SourceLinksRegexes: Record<SourcesRegex, RegExp>;
4341
4353
 
4342
- export { type AudioOutputs, type Awaitable, type Base64, type BaseNodeStats, type BasePlayOptions, type BotClientOptions, type CPUStats, type ChannelDeletePacket, type ChannelMixFilter, type ClientCustomSearchPlatformUtils, type ClientSearchPlatform, DebugEvents, type DeepRequired, DefaultQueueStore, DefaultSources, DestroyReasons, type DestroyReasonsType, DisconnectReasons, type DisconnectReasonsType, type DistortionFilter, type DuncteSearchPlatform, type EQBand, EQList, type Exception, type FailingAddress, type FilterData, FilterManager, type FloatNumber, type FrameStats, type GitObject, type GuildShardPayload, type IntegerNumber, type InvalidLavalinkRestRequest, type JioSaavnSearchPlatform, type KaraokeFilter, type LavaSearchFilteredResponse, type LavaSearchQuery, type LavaSearchResponse, type LavaSearchType, type LavaSrcSearchPlatform, type LavaSrcSearchPlatformBase, type LavalinkClientSearchPlatform, type LavalinkClientSearchPlatformResolve, type LavalinkFilterData, type LavalinkInfo, LavalinkManager, type LavalinkManagerEvents, LavalinkNode, type LavalinkNodeIdentifier, type LavalinkNodeOptions, type LavalinkPlayOptions, type LavalinkPlayer, type LavalinkPlayerVoice, type LavalinkPlayerVoiceOptions, type LavalinkPlugin_JioSaavn_SourceNames, type LavalinkPlugin_LavaSrc_SourceNames, LavalinkPlugins, type LavalinkSearchPlatform, type LavalinkSourceNames, type LavalinkTrack, type LavalinkTrackInfo, type LoadTypes, type LowPassFilter, type LyricsEvent, type LyricsEventType, type LyricsFoundEvent, type LyricsLine, type LyricsLineEvent, type LyricsNotFoundEvent, type LyricsResult, type ManagerOptions, type ManagerPlayerOptions, type ManagerQueueOptions, ManagerUtils, type MemoryStats, MiniMap, type MiniMapConstructor, type ModifyRequest, type NodeLinkConnectionMetrics, NodeLinkExclusiveEvents, NodeLinkNode, type NodeLink_ChorusFilter, type NodeLink_CompressorFilter, type NodeLink_EchoFilter, type NodeLink_HighPassFilter, type NodeLink_PhaserFilter, type NodeLink_SpatialFilter, NodeManager, type NodeManagerEvents, type NodeMessage, type NodeStats, NodeSymbol, type NodeTypes, type Opaque, type PlayOptions, Player, type PlayerEvent, type PlayerEventType, type PlayerEvents, type PlayerFilters, type PlayerJson, type PlayerOptions, type PlayerUpdateInfo, type PlaylistInfo, type PluginInfo, type PluginObject, Queue, type QueueChangesWatcher, QueueSaver, type QueueStoreManager, QueueSymbol, RecommendationsStrings, ReconnectionState, type RepeatMode, type RequiredManagerOptions, type RotationFilter, type RoutePlanner, type RoutePlannerTypes, type SearchPlatform, type SearchQuery, type SearchResult, type Session, type Severity, SourceLinksRegexes, type SourceNames, type SourcesRegex, type SponsorBlockChapterStarted, type SponsorBlockChaptersLoaded, type SponsorBlockSegment, type SponsorBlockSegmentEventType, type SponsorBlockSegmentEvents, type SponsorBlockSegmentSkipped, type SponsorBlockSegmentsLoaded, type State, type StoredQueue, type TimescaleFilter, type Track, type TrackEndEvent, type TrackEndReason, type TrackExceptionEvent, type TrackInfo, type TrackRequester, type TrackStartEvent, type TrackStuckEvent, TrackSymbol, type TremoloFilter, type UnresolvedQuery, type UnresolvedSearchResult, type UnresolvedTrack, type UnresolvedTrackInfo, UnresolvedTrackSymbol, type VersionObject, type VibratoFilter, type VoicePacket, type VoiceServer, type VoiceState, type WebSocketClosedEvent, type anyObject, audioOutputsData, parseLavalinkConnUrl, queueTrackEnd, safeStringify, validSponsorBlocks };
4354
+ export { type AudioOutputs, type Awaitable, type Base64, type BaseNodeStats, type BasePlayOptions, type BotClientOptions, type CPUStats, type ChannelDeletePacket, type ChannelMixFilter, type ClientCustomSearchPlatformUtils, type ClientSearchPlatform, DebugEvents, type DeepRequired, DefaultQueueStore, DefaultSources, DestroyReasons, type DestroyReasonsType, DisconnectReasons, type DisconnectReasonsType, type DistortionFilter, type DuncteSearchPlatform, type EQBand, EQList, type Exception, type FailingAddress, type FilterData, FilterManager, type FloatNumber, type FrameStats, type GitObject, type GuildShardPayload, type IntegerNumber, type InvalidLavalinkRestRequest, type JioSaavnSearchPlatform, type KaraokeFilter, type LavaSearchFilteredResponse, type LavaSearchQuery, type LavaSearchResponse, type LavaSearchType, type LavaSrcSearchPlatform, type LavaSrcSearchPlatformBase, type LavalinkClientSearchPlatform, type LavalinkClientSearchPlatformResolve, type LavalinkFilterData, type LavalinkInfo, LavalinkManager, type LavalinkManagerEvents, LavalinkNode, type LavalinkNodeIdentifier, type LavalinkNodeOptions, type LavalinkPlayOptions, type LavalinkPlayer, type LavalinkPlayerVoice, type LavalinkPlayerVoiceOptions, type LavalinkPlugin_JioSaavn_SourceNames, type LavalinkPlugin_LavaSrc_SourceNames, LavalinkPlugins, type LavalinkSearchPlatform, type LavalinkSourceNames, type LavalinkTrack, type LavalinkTrackInfo, type LoadTypes, type LowPassFilter, type LyricsEvent, type LyricsEventType, type LyricsFoundEvent, type LyricsLine, type LyricsLineEvent, type LyricsNotFoundEvent, type LyricsResult, type ManagerOptions, type ManagerPlayerOptions, type ManagerQueueOptions, ManagerUtils, type MemoryStats, MiniMap, type MiniMapConstructor, type ModifyRequest, type NodeLinkConnectionMetrics, NodeLinkExclusiveEvents, NodeLinkNode, type NodeLink_ChorusFilter, type NodeLink_CompressorFilter, type NodeLink_EchoFilter, type NodeLink_HighPassFilter, type NodeLink_PhaserFilter, type NodeLink_SpatialFilter, NodeManager, type NodeManagerEvents, type NodeMessage, type NodeStats, NodeSymbol, NodeType, type Opaque, type PlayOptions, Player, type PlayerEvent, type PlayerEventType, type PlayerEvents, type PlayerFilters, type PlayerJson, type PlayerOptions, type PlayerUpdateInfo, type PlaylistInfo, type PluginInfo, type PluginObject, Queue, type QueueChangesWatcher, QueueSaver, type QueueStoreManager, QueueSymbol, RecommendationsStrings, ReconnectionState, type RepeatMode, type RequiredManagerOptions, type RotationFilter, type RoutePlanner, type RoutePlannerTypes, type SearchPlatform, type SearchQuery, type SearchResult, type Session, type Severity, SourceLinksRegexes, type SourceNames, type SourcesRegex, type SponsorBlockChapterStarted, type SponsorBlockChaptersLoaded, type SponsorBlockSegment, type SponsorBlockSegmentEventType, type SponsorBlockSegmentEvents, type SponsorBlockSegmentSkipped, type SponsorBlockSegmentsLoaded, type State, type StoredQueue, type TimescaleFilter, type Track, type TrackEndEvent, type TrackEndReason, type TrackExceptionEvent, type TrackInfo, type TrackRequester, type TrackStartEvent, type TrackStuckEvent, TrackSymbol, type TremoloFilter, type UnresolvedQuery, type UnresolvedSearchResult, type UnresolvedTrack, type UnresolvedTrackInfo, UnresolvedTrackSymbol, type VersionObject, type VibratoFilter, type VoicePacket, type VoiceServer, type VoiceState, type WebSocketClosedEvent, type anyObject, audioOutputsData, parseLavalinkConnUrl, queueTrackEnd, safeStringify, validSponsorBlocks };
package/dist/index.d.ts CHANGED
@@ -410,7 +410,7 @@ declare const NodeSymbol: unique symbol;
410
410
  */
411
411
  declare function parseLavalinkConnUrl(connectionUrl: string): {
412
412
  authorization: string;
413
- nodeType: NodeTypes;
413
+ nodeType: NodeType;
414
414
  id: string;
415
415
  host: string;
416
416
  port: number;
@@ -1537,7 +1537,7 @@ type SponsorBlockSegment = "sponsor" | "selfpromo" | "interaction" | "intro" | "
1537
1537
  */
1538
1538
  interface LavalinkNodeOptions {
1539
1539
  /** Specify the Node-Type of this node. Default: Lavalink */
1540
- nodeType?: NodeTypes;
1540
+ nodeType?: NodeType;
1541
1541
  /** The Lavalink Server-Ip / Domain-URL */
1542
1542
  host: string;
1543
1543
  /** The Lavalink Connection Port */
@@ -1832,7 +1832,10 @@ declare enum ReconnectionState {
1832
1832
  PENDING = "PENDING",
1833
1833
  DESTROYING = "DESTROYING"
1834
1834
  }
1835
- type NodeTypes = "Lavalink" | "NodeLink";
1835
+ declare enum NodeType {
1836
+ Lavalink = "Lavalink",
1837
+ NodeLink = "NodeLink"
1838
+ }
1836
1839
 
1837
1840
  declare class FilterManager {
1838
1841
  static EQList: {
@@ -2891,7 +2894,7 @@ declare class Player {
2891
2894
  }
2892
2895
 
2893
2896
  declare class NodeLinkNode extends LavalinkNode {
2894
- nodeType: "NodeLink";
2897
+ nodeType: NodeType;
2895
2898
  constructor(options: LavalinkNodeOptions, manager: NodeManager);
2896
2899
  /**
2897
2900
  * Uses the gapless feature to set the next track to be played.
@@ -3064,7 +3067,7 @@ declare class LavalinkNode {
3064
3067
  private heartBeatPongTimestamp;
3065
3068
  private heartBeatInterval?;
3066
3069
  private pingTimeout?;
3067
- nodeType: NodeTypes;
3070
+ nodeType: NodeType;
3068
3071
  isAlive: boolean;
3069
3072
  static _NodeLinkClass: unknown;
3070
3073
  /** The provided Options of the Node */
@@ -3677,6 +3680,13 @@ declare class LavalinkNode {
3677
3680
  * @param {LyricsNotFoundEvent} payload The payload of the event
3678
3681
  */
3679
3682
  private LyricsNotFound;
3683
+ /**
3684
+ * @private
3685
+ * util function to check if a provided source is valid with current node.
3686
+ * @param {LavalinkSearchPlatform} src
3687
+ * @returns {boolean} True if provided source is valid.
3688
+ */
3689
+ private isLavaSrcSource;
3680
3690
  }
3681
3691
 
3682
3692
  declare class NodeManager extends EventEmitter {
@@ -3749,13 +3759,13 @@ declare class NodeManager extends EventEmitter {
3749
3759
  * @param options The options for the node
3750
3760
  * @returns The node that was created
3751
3761
  */
3752
- createNode<T extends LavalinkNode | NodeLinkNode>(options: LavalinkNodeOptions): T;
3762
+ createNode<T extends LavalinkNode | NodeLinkNode>(options: LavalinkNodeOptions | NodeLinkNode | LavalinkNode): T;
3753
3763
  /**
3754
3764
  * Get the nodes sorted for the least usage, by a sorttype
3755
3765
  * @param sortType The type of sorting to use
3756
3766
  * @returns
3757
3767
  */
3758
- leastUsedNodes(sortType?: "memory" | "cpuLavalink" | "cpuSystem" | "calls" | "playingPlayers" | "players"): LavalinkNode[];
3768
+ leastUsedNodes(sortType?: "memory" | "cpuLavalink" | "cpuSystem" | "calls" | "playingPlayers" | "players", filterForNodeTypes?: (NodeType | NodeLinkNode | LavalinkNode)[]): LavalinkNode[];
3759
3769
  /**
3760
3770
  * Delete a node from the nodeManager and destroy it
3761
3771
  * @param node The node to delete
@@ -3775,10 +3785,10 @@ declare class NodeManager extends EventEmitter {
3775
3785
  deleteNode(node: LavalinkNodeIdentifier | LavalinkNode | NodeLinkNode, movePlayers?: boolean): void;
3776
3786
  /**
3777
3787
  * Get a node from the nodeManager
3778
- * @param node The node to get
3788
+ * @param node The node to get either by idetnifier, by class or by enum
3779
3789
  * @returns The node that was retrieved
3780
3790
  */
3781
- getNode(node: LavalinkNodeIdentifier | LavalinkNode | NodeLinkNode): LavalinkNode | NodeLinkNode | undefined;
3791
+ getNode(node: LavalinkNodeIdentifier | LavalinkNode | NodeLinkNode | NodeType): LavalinkNode | NodeLinkNode | undefined;
3782
3792
  }
3783
3793
 
3784
3794
  /**
@@ -4038,7 +4048,7 @@ type PlayerConstructor<T extends Player = Player> = new (options: PlayerOptions,
4038
4048
  /** Manager Options used to create the manager */
4039
4049
  interface ManagerOptions<CustomPlayerT extends Player = Player> {
4040
4050
  /** The Node Options, for all Nodes! (on init) */
4041
- nodes: LavalinkNodeOptions[];
4051
+ nodes: (LavalinkNodeOptions | NodeLinkNode | LavalinkNode)[];
4042
4052
  /** @async The Function to send the voice connection changes from Lavalink to Discord */
4043
4053
  sendToShard: (guildId: string, payload: GuildShardPayload) => void;
4044
4054
  /** The Bot Client's Data for Authorization */
@@ -4169,48 +4179,50 @@ declare class LavalinkManager<CustomPlayerT extends Player = Player> extends Eve
4169
4179
  * port: 2333,
4170
4180
  * id: "testnode"
4171
4181
  * },
4182
+ * // you can also use the util like this, and it will return a valid node option object. must start with: lavalink:// | nodelink://
4183
+ * // parseLavalinkConnUrl("nodelink://<nodeId>:<nodeAuthorization(Password)>@<NodeHost>:<NodePort>")
4172
4184
  * sendToShard(guildId, payload) => client.guilds.cache.get(guildId)?.shard?.send(payload),
4173
- * client: {
4174
- * id: process.env.CLIENT_ID,
4175
- * username: "TESTBOT"
4185
+ * ],
4186
+ * client: {
4187
+ * id: process.env.CLIENT_ID,
4188
+ * username: "TESTBOT"
4189
+ * },
4190
+ * // optional Options:
4191
+ * autoSkip: true,
4192
+ * playerOptions: {
4193
+ * applyVolumeAsFilter: false,
4194
+ * clientBasedPositionUpdateInterval: 150,
4195
+ * defaultSearchPlatform: "ytmsearch",
4196
+ * allowCustomSources: false,
4197
+ * volumeDecrementer: 0.75,
4198
+ * //requesterTransformer: YourRequesterTransformerFunction,
4199
+ * onDisconnect: {
4200
+ * autoReconnect: true,
4201
+ * destroyPlayer: false
4176
4202
  * },
4177
- * // optional Options:
4178
- * autoSkip: true,
4179
- * playerOptions: {
4180
- * applyVolumeAsFilter: false,
4181
- * clientBasedPositionUpdateInterval: 150,
4182
- * defaultSearchPlatform: "ytmsearch",
4183
- * allowCustomSources: false,
4184
- * volumeDecrementer: 0.75,
4185
- * //requesterTransformer: YourRequesterTransformerFunction,
4186
- * onDisconnect: {
4187
- * autoReconnect: true,
4188
- * destroyPlayer: false
4189
- * },
4190
- * onEmptyQueue: {
4191
- * destroyAfterMs: 30_000,
4192
- * //autoPlayFunction: YourAutoplayFunction,
4193
- * },
4194
- * useUnresolvedData: true
4203
+ * onEmptyQueue: {
4204
+ * destroyAfterMs: 30_000,
4205
+ * //autoPlayFunction: YourAutoplayFunction,
4195
4206
  * },
4196
- * queueOptions: {
4197
- * maxPreviousTracks: 25,
4198
- * //queueStore: yourCustomQueueStoreManagerClass,
4199
- * //queueChangesWatcher: yourCustomQueueChangesWatcherClass
4200
- * },
4201
- * linksBlacklist: [],
4202
- * linksWhitelist: [],
4203
- * advancedOptions: {
4204
- * maxFilterFixDuration: 600_000,
4205
- * debugOptions: {
4206
- * noAudio: false,
4207
- * playerDestroy: {
4208
- * dontThrowError: false,
4209
- * debugLogs: false
4210
- * }
4207
+ * useUnresolvedData: true
4208
+ * },
4209
+ * queueOptions: {
4210
+ * maxPreviousTracks: 25,
4211
+ * //queueStore: yourCustomQueueStoreManagerClass,
4212
+ * //queueChangesWatcher: yourCustomQueueChangesWatcherClass
4213
+ * },
4214
+ * linksBlacklist: [],
4215
+ * linksWhitelist: [],
4216
+ * advancedOptions: {
4217
+ * maxFilterFixDuration: 600_000,
4218
+ * debugOptions: {
4219
+ * noAudio: false,
4220
+ * playerDestroy: {
4221
+ * dontThrowError: false,
4222
+ * debugLogs: false
4211
4223
  * }
4212
4224
  * }
4213
- * ]
4225
+ * }
4214
4226
  * })
4215
4227
  * ```
4216
4228
  */
@@ -4339,4 +4351,4 @@ declare const LavalinkPlugins: {
4339
4351
  /** Lavalink Sources regexes for url validations */
4340
4352
  declare const SourceLinksRegexes: Record<SourcesRegex, RegExp>;
4341
4353
 
4342
- export { type AudioOutputs, type Awaitable, type Base64, type BaseNodeStats, type BasePlayOptions, type BotClientOptions, type CPUStats, type ChannelDeletePacket, type ChannelMixFilter, type ClientCustomSearchPlatformUtils, type ClientSearchPlatform, DebugEvents, type DeepRequired, DefaultQueueStore, DefaultSources, DestroyReasons, type DestroyReasonsType, DisconnectReasons, type DisconnectReasonsType, type DistortionFilter, type DuncteSearchPlatform, type EQBand, EQList, type Exception, type FailingAddress, type FilterData, FilterManager, type FloatNumber, type FrameStats, type GitObject, type GuildShardPayload, type IntegerNumber, type InvalidLavalinkRestRequest, type JioSaavnSearchPlatform, type KaraokeFilter, type LavaSearchFilteredResponse, type LavaSearchQuery, type LavaSearchResponse, type LavaSearchType, type LavaSrcSearchPlatform, type LavaSrcSearchPlatformBase, type LavalinkClientSearchPlatform, type LavalinkClientSearchPlatformResolve, type LavalinkFilterData, type LavalinkInfo, LavalinkManager, type LavalinkManagerEvents, LavalinkNode, type LavalinkNodeIdentifier, type LavalinkNodeOptions, type LavalinkPlayOptions, type LavalinkPlayer, type LavalinkPlayerVoice, type LavalinkPlayerVoiceOptions, type LavalinkPlugin_JioSaavn_SourceNames, type LavalinkPlugin_LavaSrc_SourceNames, LavalinkPlugins, type LavalinkSearchPlatform, type LavalinkSourceNames, type LavalinkTrack, type LavalinkTrackInfo, type LoadTypes, type LowPassFilter, type LyricsEvent, type LyricsEventType, type LyricsFoundEvent, type LyricsLine, type LyricsLineEvent, type LyricsNotFoundEvent, type LyricsResult, type ManagerOptions, type ManagerPlayerOptions, type ManagerQueueOptions, ManagerUtils, type MemoryStats, MiniMap, type MiniMapConstructor, type ModifyRequest, type NodeLinkConnectionMetrics, NodeLinkExclusiveEvents, NodeLinkNode, type NodeLink_ChorusFilter, type NodeLink_CompressorFilter, type NodeLink_EchoFilter, type NodeLink_HighPassFilter, type NodeLink_PhaserFilter, type NodeLink_SpatialFilter, NodeManager, type NodeManagerEvents, type NodeMessage, type NodeStats, NodeSymbol, type NodeTypes, type Opaque, type PlayOptions, Player, type PlayerEvent, type PlayerEventType, type PlayerEvents, type PlayerFilters, type PlayerJson, type PlayerOptions, type PlayerUpdateInfo, type PlaylistInfo, type PluginInfo, type PluginObject, Queue, type QueueChangesWatcher, QueueSaver, type QueueStoreManager, QueueSymbol, RecommendationsStrings, ReconnectionState, type RepeatMode, type RequiredManagerOptions, type RotationFilter, type RoutePlanner, type RoutePlannerTypes, type SearchPlatform, type SearchQuery, type SearchResult, type Session, type Severity, SourceLinksRegexes, type SourceNames, type SourcesRegex, type SponsorBlockChapterStarted, type SponsorBlockChaptersLoaded, type SponsorBlockSegment, type SponsorBlockSegmentEventType, type SponsorBlockSegmentEvents, type SponsorBlockSegmentSkipped, type SponsorBlockSegmentsLoaded, type State, type StoredQueue, type TimescaleFilter, type Track, type TrackEndEvent, type TrackEndReason, type TrackExceptionEvent, type TrackInfo, type TrackRequester, type TrackStartEvent, type TrackStuckEvent, TrackSymbol, type TremoloFilter, type UnresolvedQuery, type UnresolvedSearchResult, type UnresolvedTrack, type UnresolvedTrackInfo, UnresolvedTrackSymbol, type VersionObject, type VibratoFilter, type VoicePacket, type VoiceServer, type VoiceState, type WebSocketClosedEvent, type anyObject, audioOutputsData, parseLavalinkConnUrl, queueTrackEnd, safeStringify, validSponsorBlocks };
4354
+ export { type AudioOutputs, type Awaitable, type Base64, type BaseNodeStats, type BasePlayOptions, type BotClientOptions, type CPUStats, type ChannelDeletePacket, type ChannelMixFilter, type ClientCustomSearchPlatformUtils, type ClientSearchPlatform, DebugEvents, type DeepRequired, DefaultQueueStore, DefaultSources, DestroyReasons, type DestroyReasonsType, DisconnectReasons, type DisconnectReasonsType, type DistortionFilter, type DuncteSearchPlatform, type EQBand, EQList, type Exception, type FailingAddress, type FilterData, FilterManager, type FloatNumber, type FrameStats, type GitObject, type GuildShardPayload, type IntegerNumber, type InvalidLavalinkRestRequest, type JioSaavnSearchPlatform, type KaraokeFilter, type LavaSearchFilteredResponse, type LavaSearchQuery, type LavaSearchResponse, type LavaSearchType, type LavaSrcSearchPlatform, type LavaSrcSearchPlatformBase, type LavalinkClientSearchPlatform, type LavalinkClientSearchPlatformResolve, type LavalinkFilterData, type LavalinkInfo, LavalinkManager, type LavalinkManagerEvents, LavalinkNode, type LavalinkNodeIdentifier, type LavalinkNodeOptions, type LavalinkPlayOptions, type LavalinkPlayer, type LavalinkPlayerVoice, type LavalinkPlayerVoiceOptions, type LavalinkPlugin_JioSaavn_SourceNames, type LavalinkPlugin_LavaSrc_SourceNames, LavalinkPlugins, type LavalinkSearchPlatform, type LavalinkSourceNames, type LavalinkTrack, type LavalinkTrackInfo, type LoadTypes, type LowPassFilter, type LyricsEvent, type LyricsEventType, type LyricsFoundEvent, type LyricsLine, type LyricsLineEvent, type LyricsNotFoundEvent, type LyricsResult, type ManagerOptions, type ManagerPlayerOptions, type ManagerQueueOptions, ManagerUtils, type MemoryStats, MiniMap, type MiniMapConstructor, type ModifyRequest, type NodeLinkConnectionMetrics, NodeLinkExclusiveEvents, NodeLinkNode, type NodeLink_ChorusFilter, type NodeLink_CompressorFilter, type NodeLink_EchoFilter, type NodeLink_HighPassFilter, type NodeLink_PhaserFilter, type NodeLink_SpatialFilter, NodeManager, type NodeManagerEvents, type NodeMessage, type NodeStats, NodeSymbol, NodeType, type Opaque, type PlayOptions, Player, type PlayerEvent, type PlayerEventType, type PlayerEvents, type PlayerFilters, type PlayerJson, type PlayerOptions, type PlayerUpdateInfo, type PlaylistInfo, type PluginInfo, type PluginObject, Queue, type QueueChangesWatcher, QueueSaver, type QueueStoreManager, QueueSymbol, RecommendationsStrings, ReconnectionState, type RepeatMode, type RequiredManagerOptions, type RotationFilter, type RoutePlanner, type RoutePlannerTypes, type SearchPlatform, type SearchQuery, type SearchResult, type Session, type Severity, SourceLinksRegexes, type SourceNames, type SourcesRegex, type SponsorBlockChapterStarted, type SponsorBlockChaptersLoaded, type SponsorBlockSegment, type SponsorBlockSegmentEventType, type SponsorBlockSegmentEvents, type SponsorBlockSegmentSkipped, type SponsorBlockSegmentsLoaded, type State, type StoredQueue, type TimescaleFilter, type Track, type TrackEndEvent, type TrackEndReason, type TrackExceptionEvent, type TrackInfo, type TrackRequester, type TrackStartEvent, type TrackStuckEvent, TrackSymbol, type TremoloFilter, type UnresolvedQuery, type UnresolvedSearchResult, type UnresolvedTrack, type UnresolvedTrackInfo, UnresolvedTrackSymbol, type VersionObject, type VibratoFilter, type VoicePacket, type VoiceServer, type VoiceState, type WebSocketClosedEvent, type anyObject, audioOutputsData, parseLavalinkConnUrl, queueTrackEnd, safeStringify, validSponsorBlocks };