Some music fixes, merge decode and encode into a single command

This commit is contained in:
Essem 2022-04-10 11:20:52 -05:00
parent c37a8a5fcf
commit dd7bd6b4cc
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
9 changed files with 55 additions and 38 deletions

View file

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