aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-05-13 15:29:08 -0500
committerParker <contact@pkrm.dev>2024-05-13 15:29:08 -0500
commitde466565014c485c58e4d63bc4ec030b9f544c0f (patch)
tree2745e1a0ec759e9840be8ca9929c09be0b7e4226
parent663cc250c9105f6f8d9ef50d5f8629621a766d0b (diff)
Show the correct artwork on track removal
-rw-r--r--code/cogs/remove.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/code/cogs/remove.py b/code/cogs/remove.py
index 0f1a8f3..6234d67 100644
--- a/code/cogs/remove.py
+++ b/code/cogs/remove.py
@@ -41,6 +41,7 @@ class Remove(commands.Cog):
index = number - 1
removed_title = player.queue[index].title
removed_url = player.queue[index].uri
+ removed_artwork = player.queue[index].artwork_url
player.queue.pop(index)
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}",
color=BOT_COLOR,
)
- embed.set_thumbnail(url=player.current.artwork_url)
+ embed.set_thumbnail(url=removed_artwork)
embed.set_footer(
text=datetime.datetime.now(datetime.timezone.utc).strftime(
"%Y-%m-%d %H:%M:%S"