From c2d23b37a789afd1cc3d3182fa67630019488242 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Mon, 27 Aug 2018 20:02:40 -0700 Subject: [PATCH] [Audio] Fix for using [p]now with thumbnail (#2063) --- redbot/cogs/audio/audio.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/redbot/cogs/audio/audio.py b/redbot/cogs/audio/audio.py index cafda2319..a5fa35cba 100644 --- a/redbot/cogs/audio/audio.py +++ b/redbot/cogs/audio/audio.py @@ -459,8 +459,9 @@ class Audio: embed = discord.Embed( colour=(await ctx.embed_colour()), title="Now Playing", description=song ) - if await self.config.guild(ctx.guild).thumbnail() and player.current.thumbnail: - embed.set_thumbnail(url=player.current.thumbnail) + if await self.config.guild(ctx.guild).thumbnail() and player.current: + if player.current.thumbnail: + embed.set_thumbnail(url=player.current.thumbnail) message = await ctx.send(embed=embed) player.store("np_message", message)