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

oldMember on "guildMemberUpdate" returns null on the first call #1456

Closed
astroctrl opened this issue Jun 9, 2023 · 2 comments
Closed

oldMember on "guildMemberUpdate" returns null on the first call #1456

astroctrl opened this issue Jun 9, 2023 · 2 comments

Comments

@astroctrl
Copy link

I'm using it to detect role changes in user but if it's the first guildMemberUpdate call it will return null, making my code useless as if it was a old role won't be detected.
Possible solution for my case would be caching all members but that would be a waste of memory

@DonovanDMC
Copy link
Contributor

This isn't a library bug, it's how Discord works
Eris can't do anything about it
caching all members IS the solution, if you absolutely need the data

@astroctrl
Copy link
Author

Well time to cache thousands of users, thank you. Sorry for opening the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants