title: discord bot not responding and says Cannot read properties of undefined
body: <p>I have been trying to get the bot to respond but it won't here is the code</p>
  <pre class="lang-js prettyprint-override"><code>client.on(&quot;messageCreate&quot;, message =&gt; {    
  
    if(message.content === &quot;ping&quot;) {    
  
      message.chanel.send(&quot;pong&quot;)    
      
    }
  </code></pre>