bot is removing all messages : <p>I wrote this script to delete all messages from a specific channel that were not images, but the bot removes all text messages and images. </p>

<p>here is the code:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>client.on("message", (message) =&gt; {
  let channel = client.channels.get(`642417479708049418`);
  if (message.author.bot) return;
  if (message.member.roles.some(r =&gt; ["DEAN!"].includes(r.name))) return;
  if (message.channel.id != channel.id) {
    return
  } else {
    if (message.embeds.length &gt; 0) {
      return
    } else {
      message.channel.send(`${message.author} this channel is for images only`);
      message.delete();
    }
  }
});</code></pre>
</div>
</div>
</p>
