From 3bc49ad955a2545b5e12146777aaedc7b3a91d73 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 13 Oct 2019 15:58:46 +0300 Subject: [PATCH] Update playlist.js --- commands/playlist.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/playlist.js b/commands/playlist.js index bafaf6d1..612a7e8c 100644 --- a/commands/playlist.js +++ b/commands/playlist.js @@ -13,6 +13,7 @@ module.exports = { } if (client.global.db.guilds[message.guild.id].premium) { if (args[1] === 'play') { + if (!voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!'); if (client.global.db.playlists[message.guild.id].saved) { if (!serverQueue) { const construct = {