music: make leave call onEnd

This commit is contained in:
Cynthia Foxwell 2022-12-10 15:59:34 -07:00
parent dba0b86d5c
commit 3f5d839780

View file

@ -632,8 +632,7 @@ command.callback = async function (
// TODO: skip lock checks // TODO: skip lock checks
connection.queue = []; connection.queue = [];
connection.__leave = true; connection.__leave = true;
connection.player.stop(); connection.onEnd();
connection.connection.disconnect();
await hf.bot.leaveVoiceChannel(msg.member.voiceState.channelID); await hf.bot.leaveVoiceChannel(msg.member.voiceState.channelID);
return {reaction: "\uD83D\uDC4B"}; return {reaction: "\uD83D\uDC4B"};
} else { } else {