title: Trying to do discord.js on react emoji get dm
body: <p>How can I make a bot that send you a dm when you react on one or two emojis?
  I'm not that good at JavaScript so I'm asking for your help.</p>
  <pre><code>bot.on('message', message =&gt; {
      if(message.author.bot)
      {
          if(message.embeds)
          {
              const embedMsg = message.embeds.find(msg =&gt; msg.title === 'server roles');
              if(embedMsg)
              {
                  embedMsg.message.react('706754740767424572')
                  .then(reaction =&gt; reaction.message.react('706761878721789982'))
                  .then(msg =&gt; console.log(&quot;Deleted message&quot;))
                  .catch(err =&gt; console.error);
              }
          }
          return;
      }
      if(message.content.toLowerCase() === '!roles')
      {
          const embed = new Discord.RichEmbed();
          embed.setTitle(&quot;server roles&quot;);
          embed.setColor(&quot;BLUE&quot;)
          embed.setDescription(&quot;&lt;:Patreon:706754740767424572&gt; - patreonas&quot;)
          message.channel.send(embed);
      }
  });
  
  
  bot.on('messageReactionAdd', (reaction, user) =&gt; {
      if(reaction.message.id !== '737968410377453578') return
      user.send('...')
      .catch(console.error)
    });
  </code></pre>