Skip to content
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

on_raw_reaction_remove event's payload does not have a member attribute #5871

Closed
3 tasks done
sunneydev opened this issue Sep 30, 2020 · 4 comments
Closed
3 tasks done
Labels
discord bug This is a Discord bug, not one with the library.

Comments

@sunneydev
Copy link

sunneydev commented Sep 30, 2020

Summary

The on_raw_reaction_add works just fine, the payload.member returns the member as default.

on_raw_reaction_remove payload should have member attribute, but it returns None

Reproduction Steps

Reproduction is simple, just use the event

Expected Results

the member attribute should've returned the member

Actual Results

It returned None

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

System Information

@sunneydev sunneydev added the bug This is a bug with the library. label Sep 30, 2020
@Zomatree
Copy link
Contributor

this is expected and documented, discord doesn't send it inside the remove event.

@sunneydev
Copy link
Author

this is expected and documented, discord doesn't send it inside the remove event.

I've seen that in the source. Any idea why?

@Zomatree
Copy link
Contributor

discord doesn't send it inside the reaction remove payload.

@Rapptz Rapptz added discord bug This is a Discord bug, not one with the library. and removed bug This is a bug with the library. labels Sep 30, 2020
@BaderSpace
Copy link

BaderSpace commented Oct 10, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discord bug This is a Discord bug, not one with the library.
Projects
None yet
Development

No branches or pull requests

4 participants