Fix pagination jump setting a NaN page number

This commit is contained in:
Essem 2023-01-07 17:01:23 -06:00
parent 5ba0336837
commit c6dd21addd
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -138,7 +138,7 @@ export default async (client, info, pages, timeout = 120000) => {
} catch { } catch {
// no-op // no-op
} }
page = Number(response.data.values[0]); page = Number(response.data.values.raw[0]);
currentPage = await currentPage.edit(Object.assign(pages[page], options, components)); currentPage = await currentPage.edit(Object.assign(pages[page], options, components));
ended = true; ended = true;
dropdownCollector.stop(); dropdownCollector.stop();