-
Notifications
You must be signed in to change notification settings - Fork 196
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(iterators): add GuildIterator.with_counts
#1093
feat(iterators): add GuildIterator.with_counts
#1093
Conversation
855311e
to
405e5f6
Compare
08b270c
to
984b1c5
Compare
I accidentally made this branch off of another branch, and not master, so that is the reason for the force-pushes |
I'm not even sure what happened here
Co-authored-by: teaishealthy <[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.
is probably ok 🚀
Co-authored-by: Emre Terzioglu <[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.
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.
Tested.
* refactor!: rewrite async iterators to not use classes * refactor!: rewrite ban & audit log iterators * docs: represent changes in Reaction.users docstring * refactor!: finish iterator rewrite * style: auto fixes from pre-commit hooks * refactor: update audit log iterators * style: auto fixes from pre-commit hooks * docs: add python doc references for async iterators * style: auto fixes from pre-commit hooks * typing: fix pyright errors * style: auto fixes from pre-commit hooks * fix(Guild.audit_logs): value of enum was passed into iterator * refactor(utils)!: remove chunk in favor of as_chunks * docs(iterators.py): add versionchanged * refactor: rewrite iterators to reflect original code * style: auto fixes from pre-commit hooks * feat: port #1093 * style: auto fixes from pre-commit hooks * style: auto fixes from pre-commit hooks * style: resolve ruff errors * style: auto fixes from pre-commit hooks * refactor(utils)!: remove anext helper nextcord maintainers have officially stated that the next version will have a 3.12 version minimum, which contains the builtin anext function. * docs: forgot asynciter tag * refactor: code smell, switch back to `reversed` for reversing data in an earlier state of this pr, I switched any iterator that used the reversed tool to sorting the list with the id as a key. however, from my own tests, this strategy does not work as expected. therefore, I have reverted it. * style: auto fixes from pre-commit hooks * docs: remove obsolete AsyncIterator class * refactor(history iterator): remove obsolete 101 limit check --------- Co-authored-by: EmreTech <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Oliver Wilkes <[email protected]>
Summary
Implements discord/discord-api-docs#5628
In case you're wondering, "why is the default for
with_counts
False
?"Well that is because the default on the documentation
false
, so just for the sake of consistency, that is why the default isFalse
.This is a Code Change
task pyright
and fixed the relevant issues.