Update Lavalink.jar, Red-Lavalink and make changes to support it (#5474)

* Lavalink error handling update

* comment typo

* address review

* Update redbot/cogs/audio/core/events/lavalink.py

* Bump jar version

* Bump RLL version

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
aikaterna 2021-12-30 16:16:28 -08:00 committed by GitHub
parent 337f58f9fb
commit c49d0ec9d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -287,7 +287,9 @@ class LavalinkEvents(MixinMeta, metaclass=CompositeMetaClass):
embed = discord.Embed( embed = discord.Embed(
title=_("Track Error"), title=_("Track Error"),
colour=await self.bot.get_embed_color(message_channel), colour=await self.bot.get_embed_color(message_channel),
description="{}\n{}".format(extra.replace("\n", ""), description), description="{}\n{}".format(
extra["message"].replace("\n", ""), description
),
) )
if current_id: if current_id:
asyncio.create_task( asyncio.create_task(

View File

@ -23,8 +23,8 @@ from .utils import task_callback
_ = Translator("Audio", pathlib.Path(__file__)) _ = Translator("Audio", pathlib.Path(__file__))
log = logging.getLogger("red.Audio.manager") log = logging.getLogger("red.Audio.manager")
JAR_VERSION: Final[str] = "3.3.2.3" JAR_VERSION: Final[str] = "3.4.0"
JAR_BUILD: Final[int] = 1239 JAR_BUILD: Final[int] = 1275
LAVALINK_DOWNLOAD_URL: Final[str] = ( LAVALINK_DOWNLOAD_URL: Final[str] = (
"https://github.com/Cog-Creators/Lavalink-Jars/releases/download/" "https://github.com/Cog-Creators/Lavalink-Jars/releases/download/"
f"{JAR_VERSION}_{JAR_BUILD}/" f"{JAR_VERSION}_{JAR_BUILD}/"

View File

@ -66,7 +66,7 @@ install_requires =
python-Levenshtein-wheels==0.13.2 python-Levenshtein-wheels==0.13.2
pytz==2021.1 pytz==2021.1
PyYAML==5.4.1 PyYAML==5.4.1
Red-Lavalink==0.8.1 Red-Lavalink==0.9.0
rich==10.9.0 rich==10.9.0
schema==0.7.4 schema==0.7.4
six==1.16.0 six==1.16.0