mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -05:00
[Audio] Check for player when not connected (#2842)
This commit is contained in:
parent
2bdc3ac10c
commit
55ff9bedb7
@ -2848,6 +2848,7 @@ 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)
|
||||||
)
|
)
|
||||||
|
if self._player_check(ctx):
|
||||||
await self._data_check(ctx)
|
await self._data_check(ctx)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@ -3278,6 +3279,7 @@ 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)
|
||||||
)
|
)
|
||||||
|
if self._player_check(ctx):
|
||||||
await self._data_check(ctx)
|
await self._data_check(ctx)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user