feat(Queue): add debug log
This commit is contained in:
parent
a676ef8f3e
commit
eef33649b2
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue