music: fix nowplaying check

This commit is contained in:
Cynthia Foxwell 2022-12-10 15:11:28 -07:00
parent b18cf6f779
commit 918026d68f

View file

@ -625,7 +625,7 @@ command.callback = async function (
const connection = voiceStorage.get(msg.guildID); const connection = voiceStorage.get(msg.guildID);
const nowPlaying = connection.nowplaying; const nowPlaying = connection.nowplaying;
if (!nowPlaying || !connection.playing) if (!nowPlaying || connection.status == AudioPlayerStatus.Idle)
return "Nothing is currently playing."; return "Nothing is currently playing.";
const position = Date.now() - nowPlaying.start; const position = Date.now() - nowPlaying.start;