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

Do not use IsDefined when updating cached nullable properties in GuildMember #323

Merged
merged 1 commit into from
Dec 9, 2023
Merged

Do not use IsDefined when updating cached nullable properties in GuildMember #323

merged 1 commit into from
Dec 9, 2023

Conversation

Octol1ttle
Copy link
Contributor

Fixes an issue that would cause some properties to not be null after updating even if the new property was null. IsDefined checks if 1) the value exists and 2) the value is not null. The second check causes problems, that's why I replaced it with TryGet which only cares about a value being present, regardless of whether it's null or not

@Nihlus Nihlus merged commit 1250b1f into Remora:main Dec 9, 2023
3 checks passed
@Octol1ttle Octol1ttle deleted the no-isdefined branch December 9, 2023 16:43
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.

2 participants