Skip to content

Commit

Permalink
Merge pull request #724 from aoberoi/deprecate-auto-pagination
Browse files Browse the repository at this point in the history
Deprecates auto-pagination
  • Loading branch information
aoberoi committed Mar 8, 2019
2 parents e62f4e5 + 7fb6457 commit e650d63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/WebClient.ts
Expand Up @@ -269,6 +269,11 @@ export class WebClient extends EventEmitter {

const shouldAutoPaginate = methodSupportsCursorPagination && optionsPaginationType === PaginationType.None;
this.logger.debug(`shouldAutoPaginate: ${shouldAutoPaginate}`);
if (shouldAutoPaginate) {
this.logger.warn(
'Auto pagination is deprecated. Use the `cursor` and `limit` arguments to make paginated calls.',
);
}

/**
* Generates a result object for each of the HTTP requests for this API call. API calls will generally only
Expand Down

0 comments on commit e650d63

Please sign in to comment.