music: fix nowplaying check
This commit is contained in:
parent
b18cf6f779
commit
918026d68f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue