title: Voice state update event
body: <p>I am trying to move the bot from 1 channel to another when the user switches channels</p>
  
  <pre class="lang-js prettyprint-override"><code>const client = require("../index.js");
  module.exports = client =&gt; {
  client.on("voiceStateUpdate", (oldState, newState) =&gt; {
    let oldChannel = oldState.voiceChannel, // the previous channel, if there was one
      newChannel = newState.voiceChannel; // the current channel, if there is one
  
    if (oldChannel != newChannel) {
      // if the channel has changed
      // do your stuff....
      channel = msg.member.voice.channel
  channel.join()
    }
  });
  
  }
  </code></pre>