noblox / noblox.js

A Node.js API wrapper for Roblox.
https://noblox.js.org
MIT License
247 stars 140 forks source link

[Feature] Pagination helper #798

Open Neztore opened 6 months ago

Neztore commented 6 months ago

I have included some thoughts here of how it could be implemented, but it is very much open to discussion.

alanbixby commented 5 months ago

TODO: Per working group discussion, @Regalijan - investigate if the existing event listener methods (onAuditLog.js etc) are still trying to fetch all of the pages instead of short polling against only the latest page due to no limit being passed to the pagination function

Regalijan commented 5 months ago

As far as I can tell, no. Most of the event methods don't use the paginator function to start with. Non-integers result in a limit of 100 for the ones that do. Network logs are only showing the first page being fetched either way.