-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
messageReactionAdd event is called twice when the bot adds reactions to its own message #1285
Comments
Message editing breaking reaction remove should be fixed in pr #1236. I am not sure about bot reacting calling messageReactionAdd 2x though, I will see if I can replicate that. You can test my pr by running |
So, double However the |
Fixed in 6ce2439 |
Hi all 👋 I just used the messageReactionAdd observation and I faced the same problem explained here: the event was called twice per reaction (only when the bot reacted, then everything is fine). Do you have an idea why? |
I came to this problem when I was having the same issue with ReactionCollector. Every time the bot reacts to it's own (in my case at least, an embedded) message, the filter function is called twice and if it passes the filter, then of course the 'collect'-event is also called twice. Does not happen when a user reacts to the message. |
I'm experiencing some more strange message reaction event behavior. I'm on master now.
It's a bit convoluted, but I have gotten the behavior to repeat reliably. Here's what I do:
The first oddity occurs here, in that the
messageReactionAdd
event is called twice. This only occurs when the bot adds its own reactions to the message. Next:A single
messageReactionAdd
event is fired, as expectedmessageReactionAdd
eventAt this point, the second oddity occurs in that the
messageReactionRemove
event is not called at all. If the message is not edited and another reaction is removed, the event will be called. But the first one after the edit is ignored.The text was updated successfully, but these errors were encountered: