Reputation:
I want to implement a Reaction Role System on my Discord Bot. I read that the "on_reaction_add()" uses the bot cache, so old messages(messages before bot was booted) wont get monitored. I made a JSON File, which has the MessageID of the Message which contains the Reaction which i want to watch. Is there a way to push this message into the cache everytime the bot boots (for example in the on_ready() method)?
Upvotes: 0
Views: 43
Reputation: 1356
If you use on_raw_reaction_add instead, it will get called any time a reaction is added to any message, regardless of if it is in the cache.
Upvotes: 0