some changes
This commit is contained in:
parent
6ba3f5b12f
commit
e617d8acf3
2 changed files with 7 additions and 4 deletions
|
@ -2,7 +2,8 @@
|
||||||
"name": "discord-player",
|
"name": "discord-player",
|
||||||
"version": "4.0.0-dev",
|
"version": "4.0.0-dev",
|
||||||
"description": "Complete framework to facilitate music commands using discord.js",
|
"description": "Complete framework to facilitate music commands using discord.js",
|
||||||
"main": "lib/index.js",
|
"main": "lib/src/index.js",
|
||||||
|
"types": "lib/src/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"lib/**/*"
|
"lib/**/*"
|
||||||
],
|
],
|
||||||
|
|
|
@ -123,11 +123,11 @@ export class Player extends EventEmitter {
|
||||||
description: data.description,
|
description: data.description,
|
||||||
thumbnail: data.thumbnail,
|
thumbnail: data.thumbnail,
|
||||||
views: data.playCount,
|
views: data.playCount,
|
||||||
author: data.author,
|
author: data.author.name,
|
||||||
requestedBy: message.author,
|
requestedBy: message.author,
|
||||||
fromPlaylist: false,
|
fromPlaylist: false,
|
||||||
source: 'soundcloud',
|
source: 'soundcloud',
|
||||||
engine: data.engine
|
engine: data
|
||||||
});
|
});
|
||||||
|
|
||||||
tracks.push(track);
|
tracks.push(track);
|
||||||
|
@ -249,6 +249,8 @@ export class Player extends EventEmitter {
|
||||||
this.emit(PlayerEvents.TRACK_START, message, queue.tracks[0], queue);
|
this.emit(PlayerEvents.TRACK_START, message, queue.tracks[0], queue);
|
||||||
this._addTracksToQueue(message, tracks);
|
this._addTracksToQueue(message, tracks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
case 'soundcloud_playlist': {
|
case 'soundcloud_playlist': {
|
||||||
this.emit(PlayerEvents.PLAYLIST_PARSE_START, null, message);
|
this.emit(PlayerEvents.PLAYLIST_PARSE_START, null, message);
|
||||||
|
@ -824,7 +826,7 @@ export class Player extends EventEmitter {
|
||||||
? options?.length <= 0 || options?.length === Infinity
|
? options?.length <= 0 || options?.length === Infinity
|
||||||
? 15
|
? 15
|
||||||
: options?.length
|
: options?.length
|
||||||
: options?.length;
|
: 15;
|
||||||
|
|
||||||
const index = Math.round((currentStreamTime / totalTime) * length);
|
const index = Math.round((currentStreamTime / totalTime) * length);
|
||||||
const indicator = '🔘';
|
const indicator = '🔘';
|
||||||
|
|
Loading…
Reference in a new issue