[Audio] Check for player when not connected (#2842)

This commit is contained in:
aikaterna 2019-07-07 20:17:50 -07:00 committed by Toby Harradine
parent 2bdc3ac10c
commit 55ff9bedb7

View File

@ -2848,7 +2848,8 @@ class Audio(commands.Cog):
await self._embed_msg( await self._embed_msg(
ctx, _("Repeat tracks: {true_or_false}.").format(true_or_false=not repeat) ctx, _("Repeat tracks: {true_or_false}.").format(true_or_false=not repeat)
) )
await self._data_check(ctx) if self._player_check(ctx):
await self._data_check(ctx)
@commands.command() @commands.command()
@commands.guild_only() @commands.guild_only()
@ -3278,7 +3279,8 @@ class Audio(commands.Cog):
await self._embed_msg( await self._embed_msg(
ctx, _("Shuffle tracks: {true_or_false}.").format(true_or_false=not shuffle) ctx, _("Shuffle tracks: {true_or_false}.").format(true_or_false=not shuffle)
) )
await self._data_check(ctx) if self._player_check(ctx):
await self._data_check(ctx)
@commands.command() @commands.command()
@commands.guild_only() @commands.guild_only()