Fix bug
parent
17ba5e2048
commit
591eb227b3
|
@ -8,8 +8,9 @@ module.exports = function (bot, api) {
|
||||||
const channel = oldState.channel || newState.channel;
|
const channel = oldState.channel || newState.channel;
|
||||||
if (!channel) return;
|
if (!channel) return;
|
||||||
if (channel.members.size < 2) {
|
if (channel.members.size < 2) {
|
||||||
await api.leaveChannel(channel);
|
|
||||||
api.AudioQueue.flush();
|
api.AudioQueue.flush();
|
||||||
|
await api.leaveChannel(channel);
|
||||||
|
|
||||||
}
|
}
|
||||||
await api.joinChannel(channel);
|
await api.joinChannel(channel);
|
||||||
let joined = false;
|
let joined = false;
|
||||||
|
|
Loading…
Reference in New Issue