From 678f285be2e0cd85b9d5bf82bc3a2d9e91b4fe7a Mon Sep 17 00:00:00 2001 From: Glas <48269777+DJTOMATO@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:52:45 -0300 Subject: [PATCH 1/3] Update player.py Proposed fix for https://github.com/Cog-Creators/Red-DiscordBot/issues/6347 --- redbot/cogs/audio/core/commands/player.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/redbot/cogs/audio/core/commands/player.py b/redbot/cogs/audio/core/commands/player.py index a925c7a4632..0963c2a679e 100644 --- a/redbot/cogs/audio/core/commands/player.py +++ b/redbot/cogs/audio/core/commands/player.py @@ -50,7 +50,9 @@ async def command_play(self, ctx: commands.Context, *, query: str): return await self.send_embed_msg( ctx, title=_("Unable To Play Tracks"), - description=_("That URL is not allowed."), + description=_( + "That URL is not allowed. \n\n The bot owner can remove this restriction by using ``{prefix}audioset restrict``" + ).format(prefix=ctx.clean_prefix), ) elif not await self.is_query_allowed(self.config, ctx, f"{query}", query_obj=query): return await self.send_embed_msg( From 42e94a39a3aa79e4e56bf45cf1b85bf0b0e048d4 Mon Sep 17 00:00:00 2001 From: Glas <48269777+DJTOMATO@users.noreply.github.com> Date: Sat, 20 Apr 2024 23:14:12 -0400 Subject: [PATCH 2/3] Update redbot/cogs/audio/core/commands/player.py Co-authored-by: aikaterna <20862007+aikaterna@users.noreply.github.com> --- redbot/cogs/audio/core/commands/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/audio/core/commands/player.py b/redbot/cogs/audio/core/commands/player.py index 0963c2a679e..aa5f32b7499 100644 --- a/redbot/cogs/audio/core/commands/player.py +++ b/redbot/cogs/audio/core/commands/player.py @@ -51,7 +51,7 @@ async def command_play(self, ctx: commands.Context, *, query: str): ctx, title=_("Unable To Play Tracks"), description=_( - "That URL is not allowed. \n\n The bot owner can remove this restriction by using ``{prefix}audioset restrict``" + "That URL is not allowed. \n\n The bot owner can remove this restriction by using ``{prefix}audioset restrict``." ).format(prefix=ctx.clean_prefix), ) elif not await self.is_query_allowed(self.config, ctx, f"{query}", query_obj=query): From a097c6a97baa18a332a5140f18f70523dc54c837 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Tue, 24 Dec 2024 03:51:02 +0100 Subject: [PATCH 3/3] Remove weird whitespace --- redbot/cogs/audio/core/commands/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/audio/core/commands/player.py b/redbot/cogs/audio/core/commands/player.py index aa5f32b7499..3e3b5273ed7 100644 --- a/redbot/cogs/audio/core/commands/player.py +++ b/redbot/cogs/audio/core/commands/player.py @@ -51,7 +51,7 @@ async def command_play(self, ctx: commands.Context, *, query: str): ctx, title=_("Unable To Play Tracks"), description=_( - "That URL is not allowed. \n\n The bot owner can remove this restriction by using ``{prefix}audioset restrict``." + "That URL is not allowed.\n\nThe bot owner can remove this restriction by using ``{prefix}audioset restrict``." ).format(prefix=ctx.clean_prefix), ) elif not await self.is_query_allowed(self.config, ctx, f"{query}", query_obj=query):