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
|
// 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 {
|
||||||
|
|
Loading…
Reference in a new issue