lavalink-client 2.7.5 → 2.7.6

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.mts CHANGED
@@ -2050,12 +2050,41 @@ interface BaseNodeStats {
2050
2050
  /** The frame stats for the node. */
2051
2051
  frameStats: FrameStats;
2052
2052
  }
2053
+ interface NodeLinkConnectionMetrics {
2054
+ status: string;
2055
+ metrics: {
2056
+ speed: {
2057
+ bps: number;
2058
+ kbps: number;
2059
+ mbps: number;
2060
+ };
2061
+ downloadedBytes: number;
2062
+ durationSeconds: number;
2063
+ timestamp: number;
2064
+ };
2065
+ }
2053
2066
  /**
2054
2067
  * Interface for nodeStats from lavalink
2055
2068
  */
2056
2069
  interface NodeStats extends BaseNodeStats {
2057
2070
  /** The frame stats for the node. */
2058
2071
  frameStats: FrameStats;
2072
+ /** something from nodeLink https://nodelink.js.org/docs/differences#detailed-statistics */
2073
+ detailedStats?: {
2074
+ api: {
2075
+ /** e.g. { "/v4/loadtracks": 150, "/v4/info": 5 } */
2076
+ requests: Record<string, number>;
2077
+ errors: unknown;
2078
+ };
2079
+ /** e.g. { "youtube": 150, "soundcloud": 5 } */
2080
+ sources: Record<string, number>;
2081
+ playback: {
2082
+ /** e.g. { "TrackStartEvent": 150, "TrackEndEvent": 5 } */
2083
+ events: Record<string, number>;
2084
+ };
2085
+ /** and potential others */
2086
+ [key: string]: unknown;
2087
+ };
2059
2088
  }
2060
2089
  /**
2061
2090
  * Entire lavalink information object from lavalink
@@ -2077,6 +2106,8 @@ interface LavalinkInfo {
2077
2106
  filters: string[];
2078
2107
  /** The enabled plugins for this server */
2079
2108
  plugins: PluginObject[];
2109
+ /** Something from NodeLink: https://nodelink.js.org/docs/differences#server-info */
2110
+ isNodelink?: boolean;
2080
2111
  }
2081
2112
  /**
2082
2113
  * Lavalink's version object from lavalink
@@ -2565,6 +2596,16 @@ declare class LavalinkNode {
2565
2596
  * ```
2566
2597
  */
2567
2598
  fetchStats(): Promise<BaseNodeStats>;
2599
+ /**
2600
+ * Request NodeLink connection metrics. https://nodelink.js.org/docs/differences#connection-metrics
2601
+ * @returns the connection metrics of the node
2602
+ *
2603
+ * @example
2604
+ * ```ts
2605
+ * const connectionMetrics = await player.node.fetchConnectionMetrics();
2606
+ * ```
2607
+ */
2608
+ fetchConnectionMetrics(): Promise<NodeLinkConnectionMetrics>;
2568
2609
  /**
2569
2610
  * Request Lavalink version.
2570
2611
  * @returns the current used lavalink version
@@ -3387,4 +3428,4 @@ declare const LavalinkPlugins: {
3387
3428
  /** Lavalink Sources regexes for url validations */
3388
3429
  declare const SourceLinksRegexes: Record<SourcesRegex, RegExp>;
3389
3430
 
3390
- 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, NodeManager, type NodeManagerEvents, type NodeMessage, type NodeStats, NodeSymbol, 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, 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 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 };
3431
+ 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, NodeManager, type NodeManagerEvents, type NodeMessage, type NodeStats, NodeSymbol, 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, 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 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
@@ -2050,12 +2050,41 @@ interface BaseNodeStats {
2050
2050
  /** The frame stats for the node. */
2051
2051
  frameStats: FrameStats;
2052
2052
  }
2053
+ interface NodeLinkConnectionMetrics {
2054
+ status: string;
2055
+ metrics: {
2056
+ speed: {
2057
+ bps: number;
2058
+ kbps: number;
2059
+ mbps: number;
2060
+ };
2061
+ downloadedBytes: number;
2062
+ durationSeconds: number;
2063
+ timestamp: number;
2064
+ };
2065
+ }
2053
2066
  /**
2054
2067
  * Interface for nodeStats from lavalink
2055
2068
  */
2056
2069
  interface NodeStats extends BaseNodeStats {
2057
2070
  /** The frame stats for the node. */
2058
2071
  frameStats: FrameStats;
2072
+ /** something from nodeLink https://nodelink.js.org/docs/differences#detailed-statistics */
2073
+ detailedStats?: {
2074
+ api: {
2075
+ /** e.g. { "/v4/loadtracks": 150, "/v4/info": 5 } */
2076
+ requests: Record<string, number>;
2077
+ errors: unknown;
2078
+ };
2079
+ /** e.g. { "youtube": 150, "soundcloud": 5 } */
2080
+ sources: Record<string, number>;
2081
+ playback: {
2082
+ /** e.g. { "TrackStartEvent": 150, "TrackEndEvent": 5 } */
2083
+ events: Record<string, number>;
2084
+ };
2085
+ /** and potential others */
2086
+ [key: string]: unknown;
2087
+ };
2059
2088
  }
2060
2089
  /**
2061
2090
  * Entire lavalink information object from lavalink
@@ -2077,6 +2106,8 @@ interface LavalinkInfo {
2077
2106
  filters: string[];
2078
2107
  /** The enabled plugins for this server */
2079
2108
  plugins: PluginObject[];
2109
+ /** Something from NodeLink: https://nodelink.js.org/docs/differences#server-info */
2110
+ isNodelink?: boolean;
2080
2111
  }
2081
2112
  /**
2082
2113
  * Lavalink's version object from lavalink
@@ -2565,6 +2596,16 @@ declare class LavalinkNode {
2565
2596
  * ```
2566
2597
  */
2567
2598
  fetchStats(): Promise<BaseNodeStats>;
2599
+ /**
2600
+ * Request NodeLink connection metrics. https://nodelink.js.org/docs/differences#connection-metrics
2601
+ * @returns the connection metrics of the node
2602
+ *
2603
+ * @example
2604
+ * ```ts
2605
+ * const connectionMetrics = await player.node.fetchConnectionMetrics();
2606
+ * ```
2607
+ */
2608
+ fetchConnectionMetrics(): Promise<NodeLinkConnectionMetrics>;
2568
2609
  /**
2569
2610
  * Request Lavalink version.
2570
2611
  * @returns the current used lavalink version
@@ -3387,4 +3428,4 @@ declare const LavalinkPlugins: {
3387
3428
  /** Lavalink Sources regexes for url validations */
3388
3429
  declare const SourceLinksRegexes: Record<SourcesRegex, RegExp>;
3389
3430
 
3390
- 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, NodeManager, type NodeManagerEvents, type NodeMessage, type NodeStats, NodeSymbol, 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, 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 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 };
3431
+ 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, NodeManager, type NodeManagerEvents, type NodeMessage, type NodeStats, NodeSymbol, 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, 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 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.js CHANGED
@@ -1070,6 +1070,17 @@ var LavalinkNode = class {
1070
1070
  used: 0
1071
1071
  },
1072
1072
  uptime: 0,
1073
+ /** something from nodeLink https://nodelink.js.org/docs/differences#detailed-statistics */
1074
+ detailedStats: {
1075
+ api: {
1076
+ requests: {},
1077
+ errors: {}
1078
+ },
1079
+ sources: {},
1080
+ playback: {
1081
+ events: {}
1082
+ }
1083
+ },
1073
1084
  frameStats: {
1074
1085
  deficit: 0,
1075
1086
  nulled: 0,
@@ -1752,6 +1763,19 @@ var LavalinkNode = class {
1752
1763
  async fetchStats() {
1753
1764
  return await this.request(`/stats`);
1754
1765
  }
1766
+ /**
1767
+ * Request NodeLink connection metrics. https://nodelink.js.org/docs/differences#connection-metrics
1768
+ * @returns the connection metrics of the node
1769
+ *
1770
+ * @example
1771
+ * ```ts
1772
+ * const connectionMetrics = await player.node.fetchConnectionMetrics();
1773
+ * ```
1774
+ */
1775
+ async fetchConnectionMetrics() {
1776
+ if (this.info && !this.info.isNodelink) throw new Error("There is no Information about wether you are using NodeLink instead of Lavalink, so this function won't work");
1777
+ return await this.request(`/connection`);
1778
+ }
1755
1779
  /**
1756
1780
  * Request Lavalink version.
1757
1781
  * @returns the current used lavalink version
@@ -2006,6 +2030,7 @@ var LavalinkNode = class {
2006
2030
  const errorString = `Lavalink Node (${this.restAddress}) does not provide any /${this.version}/info`;
2007
2031
  throw new Error(errorString);
2008
2032
  }
2033
+ this.info.isNodelink = !!this.info.isNodelink;
2009
2034
  this.NodeManager.emit("connect", this);
2010
2035
  }
2011
2036
  /** @private util function for handling closing events from websocket */
package/dist/index.mjs CHANGED
@@ -1009,6 +1009,17 @@ var LavalinkNode = class {
1009
1009
  used: 0
1010
1010
  },
1011
1011
  uptime: 0,
1012
+ /** something from nodeLink https://nodelink.js.org/docs/differences#detailed-statistics */
1013
+ detailedStats: {
1014
+ api: {
1015
+ requests: {},
1016
+ errors: {}
1017
+ },
1018
+ sources: {},
1019
+ playback: {
1020
+ events: {}
1021
+ }
1022
+ },
1012
1023
  frameStats: {
1013
1024
  deficit: 0,
1014
1025
  nulled: 0,
@@ -1691,6 +1702,19 @@ var LavalinkNode = class {
1691
1702
  async fetchStats() {
1692
1703
  return await this.request(`/stats`);
1693
1704
  }
1705
+ /**
1706
+ * Request NodeLink connection metrics. https://nodelink.js.org/docs/differences#connection-metrics
1707
+ * @returns the connection metrics of the node
1708
+ *
1709
+ * @example
1710
+ * ```ts
1711
+ * const connectionMetrics = await player.node.fetchConnectionMetrics();
1712
+ * ```
1713
+ */
1714
+ async fetchConnectionMetrics() {
1715
+ if (this.info && !this.info.isNodelink) throw new Error("There is no Information about wether you are using NodeLink instead of Lavalink, so this function won't work");
1716
+ return await this.request(`/connection`);
1717
+ }
1694
1718
  /**
1695
1719
  * Request Lavalink version.
1696
1720
  * @returns the current used lavalink version
@@ -1945,6 +1969,7 @@ var LavalinkNode = class {
1945
1969
  const errorString = `Lavalink Node (${this.restAddress}) does not provide any /${this.version}/info`;
1946
1970
  throw new Error(errorString);
1947
1971
  }
1972
+ this.info.isNodelink = !!this.info.isNodelink;
1948
1973
  this.NodeManager.emit("connect", this);
1949
1974
  }
1950
1975
  /** @private util function for handling closing events from websocket */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lavalink-client",
3
- "version": "2.7.5",
3
+ "version": "2.7.6",
4
4
  "description": "Easy, flexible and feature-rich lavalink@v4 Client. Both for Beginners and Proficients.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",