feat(Queue): add debug log

This commit is contained in:
DevAndromeda 2021-08-13 21:29:27 +05:45
parent a676ef8f3e
commit eef33649b2
No known key found for this signature in database
GPG key ID: FA40E3EC5CB6DCD6

View file

@ -107,6 +107,8 @@ class Queue<T = unknown> {
} as PlayerOptions, } as PlayerOptions,
options options
); );
this.player.emit("debug", this, `Queue initialized:\n\n${this.player.scanDeps()}`);
} }
/** /**
@ -599,6 +601,7 @@ class Queue<T = unknown> {
this.previousTracks.push(track); this.previousTracks.push(track);
} }
// TODO: remove discord-ytdl-core
let stream; let stream;
if (["youtube", "spotify"].includes(track.raw.source)) { if (["youtube", "spotify"].includes(track.raw.source)) {
if (track.raw.source === "spotify" && !track.raw.engine) { if (track.raw.source === "spotify" && !track.raw.engine) {