title: Using discord.js to detect image and respond
body: <p>I'm trying to make a prank Discord bot for my friend's Discord server,
  but the bot won't respond to anything; not even the elseif function passes.
  If anyone know why my code isn't working can you please specify it.</p>
  
  <p>NOTE: Client variable is Discord.Client if you needed a reference.</p>
  
  <pre><code>client.on("message", message =&gt; {
    if (message.channel.id != 425328056777834506) return;
    if (Math.floor(Math.random() * Math.floor(4))== 3 &amp;&amp; message.embeds.length &gt; 0) {
      message.channel.send("https://cdn.discordapp.com/attachments/330441704073330688/453693702687162369/yeet.png");
    } else if (message.embeds.length &lt; 0) {
      message.channel.send("send me photos of your win &gt;.&gt;");
    }
  })
  </code></pre>