title: getting error while making a command to kick all members in a discord server
body: <p>I am making a command to kick all members from a discord server. Here is my code:</p>
  <pre class="lang-js prettyprint-override"><code>client.on(&quot;message&quot;, message =&gt;{
  if (message.content.startsWith(prefix + &quot;amstronglikeabullinapool&quot;)) {
    message.channel.send(&quot;ok i dont care&quot;)
    const user = message.member;
    
    var allMembers = message.guild.members
    
  
  allMembers.kick()
  message.channel.send(&quot;oki&quot;)
  
  }
  
  })
  </code></pre>
  <p>I am getting the error:</p>
  <blockquote>
  <p>allMembers.kick is not a function</p>
  </blockquote>