New embed with queue and image

This commit is contained in:
2022-11-13 15:20:47 +01:00
parent 1b837c16a3
commit ffb7dc999f
4 changed files with 100 additions and 23 deletions
+4 -2
View File
@@ -6,6 +6,7 @@ from discord import Interaction
from bot import config
from cogs.music import helper
from utils.embed import create_embed
from cogs.music import track_embed
if typing.TYPE_CHECKING:
from bot import TuneBot
@@ -84,8 +85,9 @@ class MusicCommands(app_commands.Group):
await ctx.response.send_message(embed=embed)
return
embed = helper.create_track_embed(player.current)
await ctx.response.send_message(embed=embed)
controls = track_embed.create_embed_controls(self.bot)
embed = track_embed.create_track_embed(player.current, player.queue, [])
await ctx.response.send_message(embed=embed, view=controls)
@app_commands.command(name="queue", description="See what's ahead")
async def queue(self, ctx: Interaction):