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

@@ -10,25 +10,27 @@ export default async function nowplaying(interaction: ChatInputCommandInteractio
if (!queue) {
await interaction.editReply({
content: "There is no queue"
embeds: [{
description: "There is no music playing",
color: embedColor
}]
})
return
}
const current = queue.currentTrack
if (!current) {
await interaction.editReply({
content: "There is no current song"
embeds: [{
description: "There is no music playing",
color: embedColor
}]
})
return
}
await interaction.editReply({
embeds: [{
author: {
name: current.author,
},
title: "Now Playing",
description: `[${current.title}](${current.url})`,
color: embedColor,