Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.71k stars 3.74k forks source link

"on_reaction_add" not triggering on messages send before login #399

Closed Akuba- closed 7 years ago

Akuba- commented 7 years ago

That title can be confusing.

I noticed that on_reaction_add does not trigger on messages that have been send before the bot logged in.

Like:

jayktaylor commented 7 years ago

Similar to on_message_edit, if the message is not found in the Client.messages cache, then this event will not be called.

http://discordpy.readthedocs.io/en/latest/api.html#discord.on_reaction_add

Akuba- commented 7 years ago

Huh, how could I miss that part. Well, thats what I figured already.

~Close

vrumger commented 5 years ago

Would it be possible to trigger the event and pass an empty message?

Harmon758 commented 5 years ago

Please don't necrobump issues. You should look into using on_socket_raw_receive or on_raw_reaction_add on the rewrite branch. For further help, you should join either the official discord.py server or the Discord API server, as the README recommends.

vrumger commented 5 years ago

Okay. Thanks.