Compare commits

..

No commits in common. "591eb227b311d138a4bd36a7fdd6b365cdd55c1b" and "4a371cf4d6d8f8dfa9cd80d246efd79ee2f45f98" have entirely different histories.

1 changed files with 5 additions and 7 deletions

View File

@ -8,9 +8,7 @@ module.exports = function (bot, api) {
const channel = oldState.channel || newState.channel;
if (!channel) return;
if (channel.members.size < 2) {
api.AudioQueue.flush();
await api.leaveChannel(channel);
return await api.leaveChannel(channel);
}
await api.joinChannel(channel);
let joined = false;