Updated music
This commit is contained in:
@@ -19,7 +19,8 @@ const cmd: SubCommand = async (interaction) => {
|
||||
return
|
||||
}
|
||||
|
||||
// const bitRate = channel.bitrate / 1000
|
||||
let replyMessage: string = ""
|
||||
const queue = player.queues.get(interaction.guildId!)
|
||||
|
||||
const { track } = await player.play(channel, query, {
|
||||
requestedBy: interaction.user,
|
||||
@@ -28,9 +29,15 @@ const cmd: SubCommand = async (interaction) => {
|
||||
}
|
||||
})
|
||||
|
||||
if (queue) {
|
||||
replyMessage = `Added [${track.title}](${track.url}) to the queue`
|
||||
} else {
|
||||
replyMessage = `Playing [${track.title}](${track.url})`
|
||||
}
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
description: `Playing [${track.title}](${track.url})`,
|
||||
description: replyMessage,
|
||||
thumbnail: {
|
||||
url: track.thumbnail
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user