Discord.py: [rewrite] Adding reactions, but message.reactions is returning "[]"

Created on 24 Oct 2018  Â·  6Comments  Â·  Source: Rapptz/discord.py

So this is the code I have written:

add_reactions_to = await main.send(user.mention, embed = e)
await add_reactions_to.add_reaction("↖")
await add_reactions_to.add_reaction("âž¡")
print(str(add_reactions_to.reactions))

Adding the reactions to the message works just fine, I see them in the message. But it's like it isn't actually updating the message's reactions in context because the list of reactions is empty, both in the print method (always returning "[]") as well as an await to sense which reaction the _user_ selects (always returning False).

feature request v1.0-alpha

Most helpful comment

Keep this open as this is going to be worked on eventually.

All 6 comments

You need to get the message again to get the latest reactions. Wouldn't want the list to change sizes while you're iterating over it. I also have no clue what "an await to sense which reaction the user selects (always returning False)" means.

Okay, so I decided finally to get back into this, and I'm rewriting code and I'm getting a desired effect, so I feel as though this won't be an issue any longer.

Keep this open as this is going to be worked on eventually.

Uhh, if you're absolutely sure.~ The issue which _I_ had originally, is no longer, but if you think this can be optimized, then I'll leave you to it.

is there a solution for it ? this problem has been bothering me for a month now

The API doesn't return any discernible information in that endpoint to update the state so it requires hooking it up to the gateway component of the API which comes with its own set of issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MrBrahm picture MrBrahm  Â·  3Comments

danshat picture danshat  Â·  3Comments

PicklesJars picture PicklesJars  Â·  3Comments

TunaHobby picture TunaHobby  Â·  3Comments

JackL0 picture JackL0  Â·  3Comments