[Audio] Expose FriendlyException on play command (#3085)

* [Audio] Expose FriendlyException on play command

* Add changelog
This commit is contained in:
aikaterna 2019-11-06 14:41:18 -08:00 committed by Michael H
parent e79a08e392
commit d85fb260e7
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1 @@
Expose FriendlyExceptions to users on the play command.

View File

@ -2835,6 +2835,8 @@ class Audio(commands.Cog):
if not tracks: if not tracks:
self._play_lock(ctx, False) self._play_lock(ctx, False)
embed = discord.Embed(title=_("Nothing found."), colour=await ctx.embed_colour()) embed = discord.Embed(title=_("Nothing found."), colour=await ctx.embed_colour())
if result.exception_message:
embed.set_footer(text=result.exception_message)
if await self.config.use_external_lavalink() and query.is_local: if await self.config.use_external_lavalink() and query.is_local:
embed.description = _( embed.description = _(
"Local tracks will not work " "Local tracks will not work "