lavalink-client 2.1.6 → 2.2.0
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/README.md +11 -0
- package/dist/cjs/structures/CustomSearches/BandCampSearch.js +3 -2
- package/dist/cjs/structures/LavalinkManager.d.ts +5 -4
- package/dist/cjs/structures/LavalinkManager.js +1 -0
- package/dist/cjs/structures/LavalinkManagerStatics.js +5 -1
- package/dist/cjs/structures/Node.d.ts +10 -13
- package/dist/cjs/structures/Node.js +55 -56
- package/dist/cjs/structures/NodeManager.d.ts +1 -1
- package/dist/cjs/structures/Player.js +10 -10
- package/dist/cjs/structures/Queue.js +1 -1
- package/dist/cjs/structures/Track.d.ts +2 -0
- package/dist/cjs/structures/Utils.d.ts +12 -7
- package/dist/cjs/structures/Utils.js +6 -4
- package/dist/esm/structures/CustomSearches/BandCampSearch.js +2 -1
- package/dist/esm/structures/LavalinkManager.d.ts +5 -4
- package/dist/esm/structures/LavalinkManager.js +1 -0
- package/dist/esm/structures/LavalinkManagerStatics.js +5 -1
- package/dist/esm/structures/Node.d.ts +10 -13
- package/dist/esm/structures/Node.js +55 -56
- package/dist/esm/structures/NodeManager.d.ts +1 -1
- package/dist/esm/structures/Player.js +10 -10
- package/dist/esm/structures/Queue.js +1 -1
- package/dist/esm/structures/Track.d.ts +2 -0
- package/dist/esm/structures/Utils.d.ts +12 -7
- package/dist/esm/structures/Utils.js +6 -4
- package/dist/types/structures/LavalinkManager.d.ts +5 -4
- package/dist/types/structures/Node.d.ts +10 -13
- package/dist/types/structures/NodeManager.d.ts +1 -1
- package/dist/types/structures/Track.d.ts +2 -0
- package/dist/types/structures/Utils.d.ts +12 -7
- package/package.json +4 -2
|
@@ -14,23 +14,23 @@ export type IntegerNumber = Opaque<number, 'Int'>;
|
|
|
14
14
|
export type FloatNumber = Opaque<number, 'Float'>;
|
|
15
15
|
export type LavaSrcSearchPlatformBase = "spsearch" | "sprec" | "amsearch" | "dzsearch" | "dzisrc" | "ymsearch";
|
|
16
16
|
export type LavaSrcSearchPlatform = LavaSrcSearchPlatformBase | "ftts";
|
|
17
|
-
export type DuncteSearchPlatform = "speak" | "tts";
|
|
17
|
+
export type DuncteSearchPlatform = "speak" | "phsearch" | "pornhub" | "porn" | "tts";
|
|
18
18
|
export type LavalinkClientSearchPlatform = "bcsearch";
|
|
19
19
|
export type LavalinkClientSearchPlatformResolve = "bandcamp" | "bc";
|
|
20
|
-
export type LavalinkSearchPlatform = "ytsearch" | "ytmsearch" | "scsearch" | LavaSrcSearchPlatform | DuncteSearchPlatform | LavalinkClientSearchPlatform;
|
|
20
|
+
export type LavalinkSearchPlatform = "ytsearch" | "ytmsearch" | "scsearch" | "bcsearch" | LavaSrcSearchPlatform | DuncteSearchPlatform | LavalinkClientSearchPlatform;
|
|
21
21
|
export type ClientCustomSearchPlatformUtils = "local" | "http" | "https" | "link" | "uri";
|
|
22
22
|
export type ClientSearchPlatform = ClientCustomSearchPlatformUtils | // for file/link requests
|
|
23
23
|
"youtube" | "yt" | "youtube music" | "youtubemusic" | "ytm" | "musicyoutube" | "music youtube" | "soundcloud" | "sc" | "am" | "apple music" | "applemusic" | "apple" | "musicapple" | "music apple" | "sp" | "spsuggestion" | "spotify" | "spotify.com" | "spotifycom" | "dz" | "deezer" | "yandex" | "yandex music" | "yandexmusic" | "flowerytts" | "flowery" | "flowery.tts" | LavalinkClientSearchPlatformResolve | LavalinkClientSearchPlatform;
|
|
24
24
|
export type SearchPlatform = LavalinkSearchPlatform | ClientSearchPlatform;
|
|
25
25
|
export type SourcesRegex = "YoutubeRegex" | "YoutubeMusicRegex" | "SoundCloudRegex" | "SoundCloudMobileRegex" | "DeezerTrackRegex" | "DeezerArtistRegex" | "DeezerEpisodeRegex" | "DeezerMixesRegex" | "DeezerPageLinkRegex" | "DeezerPlaylistRegex" | "DeezerAlbumRegex" | "AllDeezerRegex" | "AllDeezerRegexWithoutPageLink" | "SpotifySongRegex" | "SpotifyPlaylistRegex" | "SpotifyArtistRegex" | "SpotifyEpisodeRegex" | "SpotifyShowRegex" | "SpotifyAlbumRegex" | "AllSpotifyRegex" | "mp3Url" | "m3uUrl" | "m3u8Url" | "mp4Url" | "m4aUrl" | "wavUrl" | "aacpUrl" | "tiktok" | "mixcloud" | "musicYandex" | "radiohost" | "bandcamp" | "appleMusic" | "TwitchTv" | "vimeo";
|
|
26
26
|
export interface PlaylistInfo {
|
|
27
|
-
/** The playlist
|
|
28
|
-
title: string;
|
|
29
|
-
/** The playlist name (if provided instead of title) */
|
|
27
|
+
/** The playlist name */
|
|
30
28
|
name: string;
|
|
31
|
-
/** The
|
|
29
|
+
/** The playlist title (same as name) */
|
|
30
|
+
title: string;
|
|
31
|
+
/** The playlist Author */
|
|
32
32
|
author?: string;
|
|
33
|
-
/** The
|
|
33
|
+
/** The playlist Thumbnail */
|
|
34
34
|
thumbnail?: string;
|
|
35
35
|
/** A Uri to the playlist */
|
|
36
36
|
uri?: string;
|
|
@@ -168,8 +168,13 @@ export declare class MiniMap<K, V> extends Map<K, V> {
|
|
|
168
168
|
export type PlayerEvents = TrackStartEvent | TrackEndEvent | TrackStuckEvent | TrackExceptionEvent | WebSocketClosedEvent | SponsorBlockSegmentEvents;
|
|
169
169
|
export type Severity = "COMMON" | "SUSPICIOUS" | "FAULT";
|
|
170
170
|
export interface Exception {
|
|
171
|
+
/** Severity of the error */
|
|
171
172
|
severity: Severity;
|
|
173
|
+
/** Nodejs Error */
|
|
174
|
+
error?: Error;
|
|
175
|
+
/** Message by lavalink */
|
|
172
176
|
message: string;
|
|
177
|
+
/** Cause by lavalink */
|
|
173
178
|
cause: string;
|
|
174
179
|
}
|
|
175
180
|
export interface PlayerEvent {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lavalink-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Easy, flexible and feature-rich lavalink@v4 Client. Both for Beginners and Proficients.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -59,8 +59,10 @@
|
|
|
59
59
|
"typescript": "^5.1.6"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"undici": "^5.23.0",
|
|
63
62
|
"tslib": "^2.6.1",
|
|
64
63
|
"ws": "^8.13.0"
|
|
64
|
+
},
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=18.0.0"
|
|
65
67
|
}
|
|
66
68
|
}
|