From 005123a371e2e67a9d2c5c1c3d830b3f500de7e2 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Mon, 22 Apr 2019 16:17:44 -0700 Subject: [PATCH] [Audio] Fix for playlist queue when not playing (#2586) --- redbot/cogs/audio/audio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redbot/cogs/audio/audio.py b/redbot/cogs/audio/audio.py index 1dc7b2af7..de48cb149 100644 --- a/redbot/cogs/audio/audio.py +++ b/redbot/cogs/audio/audio.py @@ -1720,6 +1720,8 @@ class Audio(commands.Cog): if not self._player_check(ctx): return await self._embed_msg(ctx, _("Nothing playing.")) player = lavalink.get_player(ctx.guild.id) + if not player.current: + return await self._embed_msg(ctx, _("There's nothing in the queue.")) tracklist = [] np_song = self._track_creator(player, "np") tracklist.append(np_song)