[Audio] Check if player is playing when pausing (#2130)

This commit is contained in:
aikaterna 2018-09-18 06:54:32 -07:00 committed by Toby Harradine
parent 17139ce439
commit 51c83d958c

View File

@ -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/", "")