Special case new RLL message (RLL 0.5.1 bump inside) (#3868)

* specialcase new RLL message

Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com>

* Bump RLL to 0.5.1

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
Draper 2020-05-28 22:33:43 +01:00 committed by GitHub
parent cb999bda7b
commit f2f3ac7d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -386,7 +386,10 @@ class PlayerUtilities(MixinMeta, metaclass=CompositeMetaClass):
title = _("Nothing found.")
embed = discord.Embed(title=title)
if result.exception_message:
embed.set_footer(text=result.exception_message[:2000].replace("\n", ""))
if "Status Code" in result.exception_message:
embed.set_footer(text=result.exception_message[:2000])
else:
embed.set_footer(text=result.exception_message[:2000].replace("\n", ""))
if await self.config.use_external_lavalink() and query.is_local:
embed.description = _(
"Local tracks will not work "

View File

@ -46,7 +46,7 @@ install_requires =
python-Levenshtein-wheels==0.13.1
pytz==2019.3
PyYAML==5.3.1
Red-Lavalink==0.5.0
Red-Lavalink==0.5.1
schema==0.7.1
tqdm==4.45.0
uvloop==0.14.0; sys_platform != "win32" and platform_python_implementation == "CPython"