mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
[core] fully migrate to InteractionPaginator
This commit is contained in:
parent
b1cc10c6ef
commit
eb0ba140f3
15 changed files with 176 additions and 303 deletions
|
@ -22,11 +22,6 @@ function createSearchResultPage(context, result){
|
|||
return res;
|
||||
}
|
||||
|
||||
const reactions = {
|
||||
previousPage: "⬅️",
|
||||
nextPage: "➡️"
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
name: 'google',
|
||||
label: 'query',
|
||||
|
@ -51,10 +46,9 @@ module.exports = {
|
|||
|
||||
pages = formatPaginationEmbeds(pages)
|
||||
const message = context.message
|
||||
const paging = await paginator.createReactionPaginator({
|
||||
const paging = await paginator.createPaginator({
|
||||
message,
|
||||
pages,
|
||||
reactions
|
||||
pages
|
||||
});
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue