From c49d0ec9d3041f267836aa089579dce65e261044 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Thu, 30 Dec 2021 16:16:28 -0800 Subject: [PATCH] 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> --- redbot/cogs/audio/core/events/lavalink.py | 4 +++- redbot/cogs/audio/manager.py | 4 ++-- setup.cfg | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/redbot/cogs/audio/core/events/lavalink.py b/redbot/cogs/audio/core/events/lavalink.py index 907514ebf..1c947bb81 100644 --- a/redbot/cogs/audio/core/events/lavalink.py +++ b/redbot/cogs/audio/core/events/lavalink.py @@ -287,7 +287,9 @@ class LavalinkEvents(MixinMeta, metaclass=CompositeMetaClass): embed = discord.Embed( title=_("Track Error"), 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: asyncio.create_task( diff --git a/redbot/cogs/audio/manager.py b/redbot/cogs/audio/manager.py index 769132d63..3e7137fcd 100644 --- a/redbot/cogs/audio/manager.py +++ b/redbot/cogs/audio/manager.py @@ -23,8 +23,8 @@ from .utils import task_callback _ = Translator("Audio", pathlib.Path(__file__)) log = logging.getLogger("red.Audio.manager") -JAR_VERSION: Final[str] = "3.3.2.3" -JAR_BUILD: Final[int] = 1239 +JAR_VERSION: Final[str] = "3.4.0" +JAR_BUILD: Final[int] = 1275 LAVALINK_DOWNLOAD_URL: Final[str] = ( "https://github.com/Cog-Creators/Lavalink-Jars/releases/download/" f"{JAR_VERSION}_{JAR_BUILD}/" diff --git a/setup.cfg b/setup.cfg index e01ff89e5..d783283a6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -66,7 +66,7 @@ install_requires = python-Levenshtein-wheels==0.13.2 pytz==2021.1 PyYAML==5.4.1 - Red-Lavalink==0.8.1 + Red-Lavalink==0.9.0 rich==10.9.0 schema==0.7.4 six==1.16.0