diff --git a/commands/skip.js b/commands/skip.js index 57bf0cc..7526f30 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -75,6 +75,18 @@ module.exports = { }); } } else { + if (queue.tracks.data.length === 0 && !queue.currentTrack) { + return await interaction.editReply({ + embeds: [ + new EmbedBuilder() + .setDescription( + `**Failed**\nThere are no tracks in the queue and nothing currently playing.` + ) + .setColor(embedColors.colorWarning) + ] + }); + } + const skippedTrack = queue.currentTrack; queue.node.skip();