mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 04:08:56 -05:00
[Audio] Check for player when not connected (#2842)
This commit is contained in:
parent
2bdc3ac10c
commit
55ff9bedb7
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user