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 bug due to typo in async pagination of entitlements loop #10051

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AbstractUmbra
Copy link
Contributor

@AbstractUmbra AbstractUmbra commented Dec 26, 2024

Summary

A help thread in the discord.py server raised a potential issue with the Client.entitlements method only returning a maximum of 100 entries.
Having investigated I found this typo which would result in only 1 iteration ever (as a limit of maximum 100) will ALWAYS result in a len of less than 1000.

NOTE: unable to test entitlements due to not having any public nor monetized bots.

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

@AbstractUmbra AbstractUmbra changed the title Fix typo in async pagination of entitlements loop Fix bug due to typo in async pagination of entitlements loop Dec 26, 2024
@MCausc78
Copy link
Contributor

`SKU.subscriptions`` has same problem: https://github.com/Rapptz/discord.py/blob/master/discord/sku.py#L242 (no idea how I did not noticed this before)

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