From 51c83d958c49041847ba4b7713b85127821814c6 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Tue, 18 Sep 2018 06:54:32 -0700 Subject: [PATCH] [Audio] Check if player is playing when pausing (#2130) --- 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 25a0dced5..9449f9407 100644 --- a/redbot/cogs/audio/audio.py +++ b/redbot/cogs/audio/audio.py @@ -747,6 +747,8 @@ class Audio: return await self._embed_msg(ctx, "You need the DJ role to pause songs.") command = ctx.invoked_with + if not player.current: + return await self._embed_msg(ctx, "Nothing playing.") if "localtracks/" in player.current.uri: description = "**{}**\n{}".format( player.current.title, player.current.uri.replace("localtracks/", "")