[Audio] Send an more user friendly message at "Track Stuck" errors (#4061)

Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com>
This commit is contained in:
PredaaA 2020-08-06 21:23:49 +02:00 committed by GitHub
parent a9bd1c60e6
commit fc2277bc88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,9 @@ class LavalinkEvents(MixinMeta, metaclass=CompositeMetaClass):
embed = discord.Embed( embed = discord.Embed(
colour=await self.bot.get_embed_color(message_channel), colour=await self.bot.get_embed_color(message_channel),
title=_("Track Stuck"), title=_("Track Stuck"),
description="{}".format(description), description=_(
"Playback of the song has stopped due to an unexcepted error.\n{error}"
).format(error=description),
) )
else: else:
embed = discord.Embed( embed = discord.Embed(