Compare commits

...

2 Commits

Author SHA1 Message Date
Talon 591eb227b3 Fix bug 2024-04-25 01:08:18 +02:00
Talon 17ba5e2048 Flush on channel leave 2024-04-25 01:08:11 +02:00
1 changed files with 7 additions and 5 deletions

View File

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