diff --git a/lib/Endpoints/LeagueEndpoint/LeagueEntriesEndpointV4.js b/lib/Endpoints/LeagueEndpoint/LeagueEntriesEndpointV4.js index db2312c9..24cd28ea 100644 --- a/lib/Endpoints/LeagueEndpoint/LeagueEntriesEndpointV4.js +++ b/lib/Endpoints/LeagueEndpoint/LeagueEntriesEndpointV4.js @@ -46,12 +46,13 @@ class LeagueEntriesEndpointV4 extends LeagueSuperclass { * @param {string} queue - The queue to search for. e.g. RANKED_SOLO_5x5 * @param {string} tier - The tier to search for. e.g. DIAMOND * @param {string} division - The division to search for. e.g. I + * @param {integer} page - The page to query. Defaults to 1. */ - list(queue, tier, division) { + list(queue, tier, division, page = 1) { return new Request( this.config, this.serviceName, - `entries/${queue}/${tier}/${division}`, + `entries/${queue}/${tier}/${division}?page=${page}`, METHOD_NAMES.LEAGUE.GET_LEAGUE_ENTRIES_BY_QUEUE_TIER_DIVISION_V4, 'GET', this.limiter,