From a5ed040e4659497a8b9ff7fdaf0eb16bb5baa50e Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 26 Dec 2021 13:14:01 +0500 Subject: [PATCH] autoplay skip --- commands/Music/skip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Music/skip.js b/commands/Music/skip.js index f584ff47..ae41ab1b 100644 --- a/commands/Music/skip.js +++ b/commands/Music/skip.js @@ -23,7 +23,7 @@ class Skip extends Command { if (!voice) return message.error("music/play:NO_VOICE_CHANNEL"); 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() .setAuthor(message.translate("music/skip:SUCCESS"))