From 44e05abfe62c3e70880ac34881cb3473f590c5fe Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 13 Oct 2019 13:59:41 +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 56bd5c3d..bafaf6d1 100644 --- a/commands/playlist.js +++ b/commands/playlist.js @@ -41,6 +41,7 @@ module.exports = { } } else return message.channel.send(':x: There is no queue set for this server!') } else if (args[1] === 'save') { + if (!serverQueue) return message.channel.send(':x: There is nothing playing!'); client.global.db.playlists[message.guild.id] = { songs: serverQueue.songs, firstSong: serverQueue.songs[0],