music: make leave call onEnd
This commit is contained in:
parent
dba0b86d5c
commit
3f5d839780
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue