title: Java Discord API : Reaction already added
body: <p>I can't find the solution of my problem. I want to check if a member already added a specific reaction (✅). If he already reacted with that reaction, he can't remove it and he can't put it back. Can someone help me please ? Thank you.</p>
  <p>There's my code, maybe it will help you :</p>
  <p>First class :</p>
  <pre class="lang-java prettyprint-override"><code>public class TimingStart extends ListenerAdapter{
  
      public static long ID;
      public static long begin;
      public static long end;
      
      public void onGuildMessageReceived(GuildMessageReceivedEvent event) {
          
          String[] args = event.getMessage().getContentRaw().split(&quot;\\s&quot;);
          Random value = new Random();
          int time = value.nextInt(25);
          time += 5;
          
          if (args[0].equals(&quot;!timing&quot;)) {
              if (!event.getChannel().getId().equals(&quot;730784510932811859&quot;)) {
                  event.getChannel().sendMessage(event.getMember().getAsMention() + &quot;, if you want to play, go to &quot; + event.getGuild().getTextChannelById(730784510932811859l).getAsMention()).queue();
              
              } else if (event.getChannel().getId().equals(&quot;730784510932811859&quot;)) {
                  EmbedBuilder eb = new EmbedBuilder();
                  eb.setColor(0xfcdf03);
                  eb.setTitle(Integer.toString(time) + &quot; seconds&quot;);
                  eb.setDescription(&quot;React with ✅ when you think the time is up !&quot;);
                  event.getChannel().sendMessage(eb.build()).queue(msg -&gt; {
                      msg.addReaction(&quot;✅&quot;).queue();
                      ID = msg.getIdLong();
                  });
                  begin = System.currentTimeMillis();
                  
              }
              
          }
          
      }
      
  }
  </code></pre>
  <p>Second class, it's here i want to check if he already reacted :</p>
  <pre class="lang-java prettyprint-override"><code>public class TimingReaction extends ListenerAdapter {
  
      public void onGuildMessageReactionAdd(GuildMessageReactionAddEvent event) {
          
          if (event.getMessageIdLong() == TimingStart.ID &amp;&amp; event.getReactionEmote().getName().equals(&quot;✅&quot;)) {
              TimingStart.end = System.currentTimeMillis();
              double tempsEcoule = ( (double) (TimingStart.end - TimingStart.begin) ) / 1000;
              event.getChannel().sendMessage(event.getMember().getAsMention() + &quot;, you reacted after &quot; + tempsEcoule + &quot; seconds !&quot;).queue();
              // If the user already reacted, he can't remove the reaction and put it back.
              
          }
          
      }
      
  }
  </code></pre>