-
Notifications
You must be signed in to change notification settings - Fork 138
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
feat(GuildIterator): fill approximate_member_count
and approximate_presence_count
fields when fetching Guilds
#892
feat(GuildIterator): fill approximate_member_count
and approximate_presence_count
fields when fetching Guilds
#892
Conversation
approximate_member_count
and approximate_presence_count
fields when fetching Guilds with GuildIteratorapproximate_member_count
and approximate_presence_count
fields when fetching Guilds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't think of the use case for this param, but all other parameters to this HTTP method can be passed when this method is used in iterators. Shouldn't with_counts
also be specified as an option within GuildIterator
If I remember correctly, we decided to keep it always as |
I see, thanks. |
@Skelmis brings up a valid point though. I don't think there are situations where you don't want this to be set to |
the API docs PR for this got merged, could you update this one as discussed above? |
…field-guild-iterator
…b.com/Victorsitou/disnake into feat/with-counts-field-guild-iterator
Done. 6046af9 |
Co-authored-by: shiftinv <[email protected]> Signed-off-by: Victor <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, noticed one more thing
oops |
Co-authored-by: shiftinv <[email protected]> Signed-off-by: Victor <[email protected]>
Summary
Guilds fetched with
Client.fetch_guilds
now haveapproximate_member_count
andapproximate_presence_count
fields filled.discord/discord-api-docs#5628
Checklist
task lint
task pyright