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
connection.queue = [];
connection.__leave = true;
connection.player.stop();
connection.connection.disconnect();
connection.onEnd();
await hf.bot.leaveVoiceChannel(msg.member.voiceState.channelID);
return {reaction: "\uD83D\uDC4B"};
} else {