From 606d3243f4d80c9e24f672318c68f5c8b41b9f89 Mon Sep 17 00:00:00 2001 From: jackra1n <45038833+jackra1n@users.noreply.github.com> Date: Sat, 27 Jan 2024 16:13:19 +0100 Subject: [PATCH] Improve music skip embed --- bot/cogs/music.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/cogs/music.py b/bot/cogs/music.py index c646d5a..3c9d0c9 100644 --- a/bot/cogs/music.py +++ b/bot/cogs/music.py @@ -152,7 +152,10 @@ async def skip(self, ctx: commands.Context, amount: int = 1): for _ in range(amount - 1): await player.queue.delete(0) await player.skip() - embed = discord.Embed(title='⏭️ Skipped', color=EMBED_COLOR) + embed = discord.Embed(title=f'⏭️ Skipped {amount}', color=EMBED_COLOR) + if player.current: + embed.description = f'Now playing: **[{player.current}]({player.current.uri})**' + embed.set_footer(text=f'By: {ctx.author}', icon_url=ctx.author.avatar.url) await ctx.send(embed=embed, delete_after=30) @commands.hybrid_command(aliases=['disconnect', 'leave'])