mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Audio] Expose FriendlyException on play command (#3085)
* [Audio] Expose FriendlyException on play command * Add changelog
This commit is contained in:
parent
e79a08e392
commit
d85fb260e7
1
changelog.d/audio/3085.enhance.1.rst
Normal file
1
changelog.d/audio/3085.enhance.1.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Expose FriendlyExceptions to users on the play command.
|
||||||
@ -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 "
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user