Skip to content

Commit

Permalink
Explain how to remove URL restrictions in the play error message (Cog…
Browse files Browse the repository at this point in the history
…-Creators#6348)

Co-authored-by: aikaterna <[email protected]>
Co-authored-by: Jakub Kuczys <[email protected]>
  • Loading branch information
3 people authored Dec 24, 2024
1 parent bd26e7d commit 3aac07a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion redbot/cogs/audio/core/commands/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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\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):
return await self.send_embed_msg(
Expand Down

0 comments on commit 3aac07a

Please sign in to comment.