We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The on_raw_reaction_add works just fine, the payload.member returns the member as default.
on_raw_reaction_add
payload.member
on_raw_reaction_remove payload should have member attribute, but it returns None
on_raw_reaction_remove
None
Reproduction is simple, just use the event
the member attribute should've returned the member
member
It returned None
The text was updated successfully, but these errors were encountered:
this is expected and documented, discord doesn't send it inside the remove event.
Sorry, something went wrong.
I've seen that in the source. Any idea why?
discord doesn't send it inside the reaction remove payload.
You can get the member object in on_raw_reaction_remove by converting the user_id to a member object like this:
guild_id = payload.guild_id guild = discord.utils.find(lambda g : g.id == guild_id, client.guilds) member = await guild.fetch_member(payload.user_id)
No branches or pull requests
Summary
The
on_raw_reaction_add
works just fine, thepayload.member
returns the member as default.on_raw_reaction_remove
payload should have member attribute, but it returnsNone
Reproduction Steps
Reproduction is simple, just use the event
Expected Results
the
member
attribute should've returned the memberActual Results
It returned
None
Checklist
System Information
The text was updated successfully, but these errors were encountered: