mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 04:38:55 -05:00
[Audio] Check if player is playing when pausing (#2130)
This commit is contained in:
parent
17139ce439
commit
51c83d958c
@ -747,6 +747,8 @@ class Audio:
|
|||||||
return await self._embed_msg(ctx, "You need the DJ role to pause songs.")
|
return await self._embed_msg(ctx, "You need the DJ role to pause songs.")
|
||||||
|
|
||||||
command = ctx.invoked_with
|
command = ctx.invoked_with
|
||||||
|
if not player.current:
|
||||||
|
return await self._embed_msg(ctx, "Nothing playing.")
|
||||||
if "localtracks/" in player.current.uri:
|
if "localtracks/" in player.current.uri:
|
||||||
description = "**{}**\n{}".format(
|
description = "**{}**\n{}".format(
|
||||||
player.current.title, player.current.uri.replace("localtracks/", "")
|
player.current.title, player.current.uri.replace("localtracks/", "")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user