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

feature: Change GuildMemberUpdate before state to cacheable #1863

Merged
merged 2 commits into from
May 30, 2021

Conversation

SubZero0
Copy link
Member

Summary

To prevent surprises from the before state being null for GuildMemberUpdate, I changed it to a Cacheable instead.
Since it's an old state, trying to get or download will always return null.

Changes

  • Changed event signature for GuildMemberUpdate
    Old: SocketGuildUser, SocketGuildUser, Task
    New: Cacheable<SocketGuildUser, ulong>, SocketGuildUser, Task

@SubZero0 SubZero0 merged commit c2e87f5 into discord-net:dev May 30, 2021
@SubZero0 SubZero0 deleted the guild-member-update-cacheable branch May 30, 2021 18:53
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

Successfully merging this pull request may close these issues.

None yet

1 participant