Skip to content

Commit

Permalink
deprecates auto-pagination, fixes #721
Browse files Browse the repository at this point in the history
  • Loading branch information
aoberoi committed Mar 8, 2019
1 parent e62f4e5 commit 7fb6457
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 7fb6457

Please sign in to comment.