autoplay skip

This commit is contained in:
JonnyBro 2021-12-26 13:14:01 +05:00
parent e4f2493d65
commit a5ed040e46

View file

@ -23,7 +23,7 @@ class Skip extends Command {
if (!voice) return message.error("music/play:NO_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");
if (!queue.songs[1]) return message.error("music/skip:NO_NEXT_SONG"); if (!queue.songs[1] || !queue.autoplay) return message.error("music/skip:NO_NEXT_SONG");
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setAuthor(message.translate("music/skip:SUCCESS")) .setAuthor(message.translate("music/skip:SUCCESS"))