Fix pagination jump setting a NaN page number
This commit is contained in:
parent
5ba0336837
commit
c6dd21addd
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue