From 788216c3730c7b6f7d1a588a0a2e78b17a57dce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 16 Sep 2021 19:43:40 +0300 Subject: [PATCH] Update Radio class --- src/client/classes/Radio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/classes/Radio.js b/src/client/classes/Radio.js index e639619..ca0af5b 100644 --- a/src/client/classes/Radio.js +++ b/src/client/classes/Radio.js @@ -38,7 +38,7 @@ module.exports = class Radio extends Map { if(!state.station || !state.channels.voice || !state.channels.text) return; let voiceChannel = client.channels.cache.get(state.channels.voice); if(!voiceChannel) return; - if(voiceChannel.members.size === 0) return; + if(voiceChannel.members.filter(member => !member.user.bot).size === 0) return; const sstation = await client.stations.search(state.station.name);