Updated music commands

This commit is contained in:
2024-02-10 16:03:46 +01:00
parent cbeeeca8d8
commit 23a7db55e1
8 changed files with 137 additions and 12 deletions

View File

@@ -8,7 +8,12 @@ export default async function queue(interaction: ChatInputCommandInteraction) {
const queue = player.queues.get(interaction.guildId!)
if (!queue) {
await interaction.editReply("There is nothing playing")
await interaction.editReply({
embeds: [{
description: "There is no queue",
color: embedColor
}]
})
return
}
@@ -20,8 +25,15 @@ export default async function queue(interaction: ChatInputCommandInteraction) {
await interaction.editReply({
embeds: [{
title: "Queue",
description: nowPlaying + "\n\n" + tracks.join("\n"),
color: embedColor
thumbnail: {
url: currentSong?.thumbnail || ""
},
color: embedColor,
footer: {
text: `Total tracks: ${queue.tracks.size}`
}
}]
})
}