title: discord.js How do you make a reaction collector
body: <p>I am trying to make it so when you get to a certain amount of reactions my bot will send a message and if somebody can help here is my code</p>
  <pre><code>.then(function(sentMessage) {
              sentMessage.react('').catch(() =&gt; console.error('emoji failed to react.')).message.reactions.cache.get('').count;
              const filter = (reaction, user) =&gt; {
      return reaction.emoji.name === '' &amp;&amp; user.id === message.author.id;
  };
  
  message.awaitReactions(filter, { max: 2, time: 00, errors: ['time'] })
      .then(collected =&gt; console.log(collected.size))
      .catch(collected =&gt; {
          console.log(`After a minute, only ${collected.size} out of 4 reacted.`);
      });
          });
  })
  </code></pre>