title: discord.js Cannot read properties of undefined (reading 'send') after sending the message
body: <pre class="lang-js prettyprint-override"><code>Client.once('ready', () =&gt; {
      console.log('Bot online')
  });
  
  Client.on(&quot;message&quot;, message =&gt; {
      if (message.channel.id = '915302302682873909') {
          const logChannel = Client.channels.cache.find(channel =&gt; channel.id === &quot;915302371519770664&quot;);
          //send author
          logChannel.send(`${message.author}` + &quot;: &quot;)
              .then(message =&gt; console.log(`Sent message: ${message.content}`));
          //send message content
          logChannel.send(message.content)
              .then(message =&gt; console.log(`Sent message: ${message.content}`));
      }
  })
  </code></pre>
  <p>If I start up my bot and send a message to see if it works, it sends the <code>`${message.author}` + &quot;: &quot;</code> as it should but then immediately crashes saying <code>TypeError: Cannot read properties of undefined (reading 'send')</code>
  What's also really weird is that sometime (I couldn't figure out when) it sends both <code>`${message.author}` + &quot;: &quot;</code> and <code>message.content</code> before crashing.</p>