Added forceskip, fixed blank title tracks some more

This commit is contained in:
Essem 2021-09-19 18:06:09 -05:00
parent 3517826f46
commit b07c0e389e
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
3 changed files with 21 additions and 3 deletions

View file

@ -78,7 +78,7 @@ export async function play(client, sound, message, music = false) {
});
if (oldQueue && music) {
return `Your ${playlistInfo.name ? "playlist" : "tune"} \`${playlistInfo.name ? playlistInfo.name : tracks[0].info.title}\` has been added to the queue!`;
return `Your ${playlistInfo.name ? "playlist" : "tune"} \`${playlistInfo.name ? playlistInfo.name : (tracks[0].info.title !== "" ? tracks[0].info.title : "(blank)")}\` has been added to the queue!`;
} else {
nextSong(client, message, connection, tracks[0].track, tracks[0].info, music, voiceChannel, player ? player.loop : false);
return;