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
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ export default async (client, info, pages, timeout = 120000) => {
} catch {
// 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));
ended = true;
dropdownCollector.stop();