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

Fix has_role returning incorrect result if member is not cached #725

Merged
merged 1 commit into from
Sep 27, 2019

Conversation

ikkerens
Copy link
Contributor

Currently, if the member object is not cached, the first cache check will always return Some(false) despite the Member object not being present, it should return None so that the later http-check can take over and actually request the object.

@arqunis arqunis added fix A solution to an existing bug. model Related to the `model` module. labels Sep 26, 2019
@arqunis arqunis merged commit 96b49f9 into serenity-rs:current Sep 27, 2019
@ikkerens ikkerens deleted the patch-has-role-cache branch September 27, 2019 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A solution to an existing bug. model Related to the `model` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants