mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 22:15:29 +00:00
fix: trying to read title on track for initialized but empty queue
This commit is contained in:
1 parent
8c7d4a07ca
commit
77c91a350f
1 file changed
+12
@@ -75,6 +75,18 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} 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;
|
const skippedTrack = queue.currentTrack;
|
||||||
queue.node.skip();
|
queue.node.skip();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user