mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Explain how to remove URL restrictions in the play error message (#6348)
Co-authored-by: aikaterna <20862007+aikaterna@users.noreply.github.com> Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
parent
bd26e7d5af
commit
3aac07a4d7
@ -50,7 +50,9 @@ class PlayerCommands(MixinMeta, metaclass=CompositeMetaClass):
|
|||||||
return await self.send_embed_msg(
|
return await self.send_embed_msg(
|
||||||
ctx,
|
ctx,
|
||||||
title=_("Unable To Play Tracks"),
|
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):
|
elif not await self.is_query_allowed(self.config, ctx, f"{query}", query_obj=query):
|
||||||
return await self.send_embed_msg(
|
return await self.send_embed_msg(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user