title: Detect when someone use an emoji in discord.js
body: <p>I made a function in a discord bot that will delete user message, when its lenght is past 100 characters, animated/custom/unicode emojis however bypasses this 100 characters limit (theoretically, 1 emoji is not equal to 1 character, idk how it works) but my bot crash after to many of them. I want to make a function, that will detect these emojis, and if it finds one, just delete this person comment. I was working on something like that.</p>
  <pre><code>client.on('messageCreate', message =&gt;{ 
    if(message.content.startsWith(&quot;:&quot;) &amp;&amp; message.content.endsWith(&quot;:&quot;) || message.content.startsWith(&quot;&lt;:&quot;) &amp;&amp; message.content.endsWith(&quot;:&gt;&quot;) {
      return;
    }
    else {
    if(!message.content.startsWith(prefix) || message.author.bot || message.member.roles.cache.has('828277437242146816')) return;
  </code></pre>
  <p>If you have any other solution, you can share it in a comment.</p>