Show the correct artwork on track removal

This commit is contained in:
Parker M. 2024-05-13 15:29:08 -05:00
parent 663cc250c9
commit de46656501
No known key found for this signature in database
GPG Key ID: 95CD2E0C7E329F2A

View File

@ -41,6 +41,7 @@ class Remove(commands.Cog):
index = number - 1 index = number - 1
removed_title = player.queue[index].title removed_title = player.queue[index].title
removed_url = player.queue[index].uri removed_url = player.queue[index].uri
removed_artwork = player.queue[index].artwork_url
player.queue.pop(index) player.queue.pop(index)
embed = discord.Embed( embed = discord.Embed(
@ -48,7 +49,7 @@ class Remove(commands.Cog):
description=f"**Song Removed - [{removed_title}]({removed_url})**\n\nIssued by: {interaction.user.mention}", description=f"**Song Removed - [{removed_title}]({removed_url})**\n\nIssued by: {interaction.user.mention}",
color=BOT_COLOR, color=BOT_COLOR,
) )
embed.set_thumbnail(url=player.current.artwork_url) embed.set_thumbnail(url=removed_artwork)
embed.set_footer( embed.set_footer(
text=datetime.datetime.now(datetime.timezone.utc).strftime( text=datetime.datetime.now(datetime.timezone.utc).strftime(
"%Y-%m-%d %H:%M:%S" "%Y-%m-%d %H:%M:%S"