title: Need help disconnecting members if in a certain voice channel
body: <p>So with discord, I have made an AFK voice channel and set the server to if a member is AFK for 15 minutes, it sends them to the AFK voice channel. But I want to make it so my bot disconnects them from the channel straight away.</p>
  
  <p>I've thought of two ways on how to do it, using intervals to check the voice channel every second, or to add a listener to if VoiceStateUpdate is the member being moved to the voice channel. I am trying to limit the amount of listeners in the main file so in the <code>client.once('ready', () =&gt; { })</code> I used an interval to check the voice channel every second.</p>
  
  <pre><code>setInterval(function () {
        const VoiceChannel = "718634068543012924"
    if(VoiceChannel.members.length &gt; 0) {
      const now = new Date()
      const time = (`${now.getDay()}, ${now.getDate()}/${now.getMonth()}/${now.getFullYear()} ${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}`)
        member.voice.kick("AFK");
        console.log(`AFK Member kicked.`)
    }
    else {
        console.log("No one there bud.")
    }
  }, 1000)
  </code></pre>
  
  <p>The problem is with the members.length , it comes with the error </p>
  
  <pre><code>TypeError: Cannot read property 'length' of undefined
      at listOnTimeout (internal/timers.js:549:17)
      at processTimers (internal/timers.js:492:7)
  </code></pre>
  
  <p>I have tried .size and that still doesn't work, I don't really know what else to try or what I have done wrong, I have checked the discord.js.org documentation but I am still confused. So if there is any way to do this without adding another listener and you could help me that would be much appreciated. If not I will just suck it up and add one. Thank you.</p>
  
  <p>Hermes</p>