title: (Discord.js) How do i get all the members connected to the voice channels of a category?
body: <p>So, i'm making a command called "movedebat" to move all the members connected to the voice channels of a channel category to a channel dedicated to debates.</p>
  
  <p>To achieve my goal, I am trying to get the list of all the connected members, to then use a for(member in members) loop and move each one of the members.</p>
  
  <pre><code>    let debate_channel = message.guild.channels.find(c =&gt; c.id === '497910775512563742');
      let group_of_channels = message.guild.channels.find(c =&gt; c.id === '497908108803440653');
      let connected_members = message.guild.channels.filter((c =&gt; parentID === group_of_channels.id)&amp;&amp;(c =&gt; c.type == 2)).members;
      if(message.member.permissions.has('ADMINISTRATOR')){
          for(connected_member in connected_members){
              console.log(connected_member.id); 
              connected_member.setVoiceChannel(debate_channel)
                  .then(() =&gt; console.log(`Moved ${connected_member.displayName}`))
                  .catch(console.error);
          }
      }
  </code></pre>
  
  <p>The problem is that it doesn't work at all. I do not get any error, neither by the bot itself in discord or in the console.
  The only thing I get is a warning <code>DeprecationWarning: Collection#filterArray: use Collection#filter instead</code>, but I Googled it and people seemed to say it was not important.
  i think that the problematic line is the 'let connected_members(...)members;' one.
  I should mention that i expect to see at least 1 member id in my console, but i don't get any, that means that the for loop is not 'executed'.</p>
  
  <p>Thank you for reading me, I hope someone can help ! ^^</p>