-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
I'm currently experiencing a very weird issue where the animated property of the emoji data in the MESSAGE_REACTION_ADD appears to be unreliable.
From my testing, it appears that if the message already has a reaction from a bot, an additional reaction of the same emoji added to the message will return animated=false in the payload when the emoji is still animated.
https://drive.google.com/file/d/1kwY2hA_rpvbaHEaIbPqZgYR2DBsqtBTR/view?usp=sharing
Whilst I can see in the documentation that the value is marked as optional, it appears in this situation that it is being sent as false, otherwise I would expect the value to be None based on the code that the value runs through in the library.
Looking through the discord.py code, which I'm using to test, it appears that the value is never forced into a boolean and so from what I can tell, this value is the raw one being presented from Discord.
https://github.com/Rapptz/discord.py/blob/rewrite/discord/gateway.py#L396-L403
https://github.com/Rapptz/discord.py/blob/rewrite/discord/state.py#L400-L405
https://github.com/Rapptz/discord.py/blob/rewrite/discord/emoji.py#L32-L98
Note: It might be worth mentioning that the animated emoji in question is located on a different server from where these reactions are happening but both myself and the bot are also in this server.