Skip to content

MESSAGE_REACTION_ADD emoji.animated is unreliable #812

@MattIPv4

Description

@MattIPv4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions