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:
Glas 2024-12-24 11:22:02 -03:00 committed by GitHub
parent bd26e7d5af
commit 3aac07a4d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(