-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nullable limit and before parameters in pagination, more precise Posi…
…tion type, multiple fixes (#484) * Fix AuditLogGetRequestBuilder docs * AuditLogGetRequestBuilder.limit is 50 by default * Better types in pagination * Always use service getters in RestEntitySupplier * Default limit for getCurrentUserGuilds, see https://discord.com/developers/docs/resources/user#get-current-user-guilds * Add checkLimitAndGetBatchSize function * Add limitPagination function * RestEntitySupplier.getMessagesAround did not use limit parameter * Max limit/batchSize for RestEntitySupplier.guilds, see https://discord.com/developers/docs/resources/user#get-current-user-guilds * Use more specific position types where possible * Fixes for archived threads * Lambdas for guilds idSelector * Fix pagination for audit log * Higher order function for limited pagination * unexpected bigger page will not stop pagination * batchSize as first param in pagination * Make sure Position.Around can not be used in UserService.getCurrentUserGuilds * Nullable limit and position parameters to use Discord's defaults * Clearer names in pagination * Cannot paginate nullable items * Clarify no maxBatchSize documented * Move map one more level in RestEntitySupplier.getJoinedPrivateArchivedThreads() * idLt for consistency
- Loading branch information
1 parent
084f026
commit 8263ee5
Showing
20 changed files
with
408 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.