fix autoplay

This commit is contained in:
JonnyBro 2021-12-22 21:09:19 +05:00
parent de62c636df
commit 8f5c5aceee

View file

@ -21,7 +21,7 @@ class AutoPlay extends Command {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
if (!queue) return message.error("music:play:NOT_PLAYING");
if (!queue) return message.error("music/play:NOT_PLAYING");
// Gets the current song
await this.client.player.setAutoPlay(message, !queue.autoPlay);