Show the correct artwork on track removal
This commit is contained in:
parent
663cc250c9
commit
de46656501
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user