This commit is contained in:
Snowflake107 2021-05-10 14:57:10 +05:45
parent c2ff70955f
commit 9e187a4d2b
2 changed files with 3 additions and 3 deletions

View file

@ -232,8 +232,8 @@ export class Player extends EventEmitter {
if (data.length) return data[0];
})
);
tracks = tracks.filter(f => !!f);
tracks = tracks.filter((f) => !!f);
if (!tracks.length) return void this.emit(PlayerEvents.NO_RESULTS, message, query);
const pl = {

View file

@ -161,7 +161,7 @@ export class Queue extends EventEmitter {
const streamTime = this.voiceConnection?.dispatcher?.streamTime + this.additionalStreamTime || 0;
if (NC && VW) return streamTime * (NC + VW);
return NC ? streamTime * NC : VW ? (streamTime * VW) : streamTime;
return NC ? streamTime * NC : VW ? streamTime * VW : streamTime;
}
/**