mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 05:00:18 +00:00
Update Radio class
This commit is contained in:
parent
ead52decf2
commit
788216c373
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user