[Audio] Fix for playlist queue when not playing (#2586)

This commit is contained in:
aikaterna 2019-04-22 16:17:44 -07:00 committed by Will
parent bb8ce43cc0
commit 005123a371

View File

@ -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)