distube 4.0.0 → 4.0.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.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
"package.json"(exports, module) {
|
|
45
45
|
module.exports = {
|
|
46
46
|
name: "distube",
|
|
47
|
-
version: "4.0.
|
|
47
|
+
version: "4.0.1",
|
|
48
48
|
description: "A Discord.js module to simplify your music commands and play songs with audio filters on Discord without any API key.",
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -117,21 +117,21 @@ var require_package = __commonJS({
|
|
|
117
117
|
undici: "^5.8.0"
|
|
118
118
|
},
|
|
119
119
|
devDependencies: {
|
|
120
|
-
"@babel/core": "^7.18.
|
|
120
|
+
"@babel/core": "^7.18.9",
|
|
121
121
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
122
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.18.
|
|
123
|
-
"@babel/preset-env": "^7.18.
|
|
122
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
|
|
123
|
+
"@babel/preset-env": "^7.18.9",
|
|
124
124
|
"@babel/preset-typescript": "^7.18.6",
|
|
125
125
|
"@commitlint/cli": "^17.0.3",
|
|
126
126
|
"@commitlint/config-conventional": "^17.0.3",
|
|
127
|
-
"@discordjs/voice": "
|
|
127
|
+
"@discordjs/voice": "^0.11.0",
|
|
128
128
|
"@distube/docgen": "distubejs/docgen",
|
|
129
129
|
"@types/jest": "^28.1.6",
|
|
130
130
|
"@types/node": "^18.0.6",
|
|
131
|
-
"@typescript-eslint/eslint-plugin": "^5.30.
|
|
132
|
-
"@typescript-eslint/parser": "^5.30.
|
|
131
|
+
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
|
132
|
+
"@typescript-eslint/parser": "^5.30.7",
|
|
133
133
|
"babel-jest": "^28.1.3",
|
|
134
|
-
"discord.js": "
|
|
134
|
+
"discord.js": "^14.0.2",
|
|
135
135
|
eslint: "^8.20.0",
|
|
136
136
|
"eslint-config-distube": "^1.6.4",
|
|
137
137
|
"eslint-config-prettier": "^8.5.0",
|
|
@@ -355,6 +355,7 @@ var Playlist = class {
|
|
|
355
355
|
this.songs = playlist;
|
|
356
356
|
this.name = this.songs[0].name ? `${this.songs[0].name} and ${this.songs.length - 1} more songs.` : `${this.songs.length} songs playlist`;
|
|
357
357
|
this.thumbnail = this.songs[0].thumbnail;
|
|
358
|
+
this.member = member || void 0;
|
|
358
359
|
} else {
|
|
359
360
|
this.source = (playlist.source || "youtube").toLowerCase();
|
|
360
361
|
if (!Array.isArray(playlist.songs) || !playlist.songs.length)
|
|
@@ -363,12 +364,12 @@ var Playlist = class {
|
|
|
363
364
|
this.name = playlist.name || playlist.title || (this.songs[0].name ? `${this.songs[0].name} and ${this.songs.length - 1} more songs.` : `${this.songs.length} songs playlist`);
|
|
364
365
|
this.url = playlist.url || playlist.webpage_url;
|
|
365
366
|
this.thumbnail = playlist.thumbnail || this.songs[0].thumbnail;
|
|
367
|
+
this.member = member || playlist.member || void 0;
|
|
366
368
|
}
|
|
367
369
|
this.songs.map((s) => s.constructor.name === "Song" && (s.playlist = this));
|
|
368
370
|
if (properties)
|
|
369
371
|
for (const [key, value] of Object.entries(properties))
|
|
370
372
|
this[key] = value;
|
|
371
|
-
this.member = member;
|
|
372
373
|
this.metadata = metadata;
|
|
373
374
|
}
|
|
374
375
|
get duration() {
|