title: Discord.js: How to send a message and collect reactions from it
body: <p>I want the discord.js bot to send a message when a command is executed, react on it and then catch all reactions from users to do certain stuff, like respond to them. No time limit should be applied to reactions. I should also mention that I'm using a command handler and the message is being sent from another file than index.js (in which the collect even should occur).</p>
  
  <p>I tried doing a collector but no matter how I do it, the collector variable is not defined or not working. I know it should be a collector for a fact though.</p>
  
  <p>Making a filter for the checkmark emoji:</p>
  
  <pre><code>  return reaction.emoji.name === `✅` &amp;&amp; user.id === call.message.author.id;
  }
  </code></pre>
  
  <p>Trying to catch reactions outside the command block itself (because if I do it IN the block the event won't work:</p>
  
  <pre><code>collector.on(`collect`, (reaction, reactionCollector) =&gt; {
      console.log(`Caught ${reaction.emoji.name}`);
  });
  </code></pre>
  
  <p>The errors I get are pretty much expected but I want to solve that:</p>
  
  <pre><code>collector.on(`collect`, (reaction, reactionCollector) =&gt; {
  ^
  
  ReferenceError: collector is not defined
  </code></pre>
  
  <p>Maybe a global variable or setting the message id and then fetching? Help me.</p>