Title: Discord.js Emoji Collector
Tags: javascript;discord;discord.js
Question: i have litle problem when i using collector i tried test with logging actions. Then where is problem when i remove/delete reaction from message its doesnt react i must add reaction first time and that removing/deleting reaction detect works after setting first time reaction but previously reaction doesnt works.
```const collector = msg.createReactionCollector({ dispose: true });
collector.on('collect', (reaction, user) =&gt; {
   console.log(&quot;Collect&quot;);
});
collector.on('remove', (reaction, user) =&gt; {
   console.log(&quot;remove&quot;);
});
```

Comment: Are you saying it's not detecting the message's reactions being removed, if it wasn't added after the collector was created?


Here is another answer: I find way how fix this
```msg.createReactionCollector({ dispose: true });

client.on('messageReactionAdd', (reaction, user) =&gt;
{
    console.log(&quot;ReactionAdded&quot;);
});

client.on('messageReactionRemove', (reaction, user) =&gt;
{
    console.log(&quot;ReactionAdded&quot;);
});
```


Here is another answer: If I understood your question correctly, what's happening here is that the message in which the reactions are being added/removed is not cached by the bot on boot, and it is only cached after the first reaction gets added or removed from it, this is why the second action is detected but the first one isn't.
One away to solve this would be to cache the message on startup by fetching it using ```<TextChannel&gt;.messages.fetch(<MESSAGE_ID&gt;)```.


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2022:00:01/15/22', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<javascript><discord><discord.js>', 'Title': 'Discord.js Emoji Collector', 'ViewCount': 43, 'id': 70724516, 'user_AboutMe': None, 'user_AccountId': 20571091.0, 'user_DisplayName': 'Kubad', 'user_Reputation': 15.0, 'user_Views': 3.0, 'user_id': 15099411.0}}