From 591eb227b311d138a4bd36a7fdd6b365cdd55c1b Mon Sep 17 00:00:00 2001 From: Talon Date: Thu, 25 Apr 2024 01:08:18 +0200 Subject: [PATCH] Fix bug --- modules/announcer/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/announcer/index.js b/modules/announcer/index.js index 847f003..171cd28 100644 --- a/modules/announcer/index.js +++ b/modules/announcer/index.js @@ -8,8 +8,9 @@ module.exports = function (bot, api) { const channel = oldState.channel || newState.channel; if (!channel) return; if (channel.members.size < 2) { - await api.leaveChannel(channel); api.AudioQueue.flush(); + await api.leaveChannel(channel); + } await api.joinChannel(channel); let joined = false;