-
-
Notifications
You must be signed in to change notification settings - Fork 467
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: always set Guild._member_count #2145
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2145 +/- ##
==========================================
+ Coverage 33.86% 33.87% +0.01%
==========================================
Files 109 109
Lines 22361 22353 -8
==========================================
Hits 7573 7573
+ Misses 14788 14780 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
Please add a changelog entry. |
Summary
Previously, if a guild's
member_count
wasn't provided from the API (e.g. when usingfetch_guild
) the_member_count
attribute was never set. This makes sure it's set regardless, and adjust other functions in the library to make use of this instead of usinggetattr
or try/except.Fixes #2136
Information
examples, ...).
Checklist
type: ignore
comments were used, a comment is also left explaining why.