diff --git a/commands/music/play.js b/commands/music/play.js index 72cae89..aa3e255 100644 --- a/commands/music/play.js +++ b/commands/music/play.js @@ -33,7 +33,6 @@ module.exports = { }); const guild = client.guilds.cache.get(interaction.guildId); - const channel = guild.channels.cache.get(interaction.channelId); const songString = interaction.options.getString("song"); @@ -106,13 +105,26 @@ module.exports = { }, }; + let playlistEmbed = { + color: "#9dcc37", + description: `✅ | Queued ${queue.tracks.length} Songs`, + }; + if (!queue.playing) { - await interaction.followUp({ embeds: [musicEmbed] }); + searchSong.playlist + ? await interaction.followUp({ + embeds: [playlistEmbed, musicEmbed], + }) + : await interaction.followUp({ + embeds: [musicEmbed], + }); await queue.play(); } if (queue.playing) { - await interaction.followUp({ embeds: [musicEmbed] }); + searchSong.playlist + ? await interaction.followUp({ embeds: [playlistEmbed, musicEmbed] }) + : await interaction.followUp({ embeds: [musicEmbed] }); } }, };