[core] fully migrate to InteractionPaginator

This commit is contained in:
derpystuff 2022-05-22 17:55:16 +02:00
parent b1cc10c6ef
commit eb0ba140f3
15 changed files with 176 additions and 303 deletions

View file

@ -21,11 +21,6 @@ function createSearchResultPage(context, result){
return res;
}
const reactions = {
previousPage: "⬅️",
nextPage: "➡️"
};
module.exports = {
name: 'bing',
label: 'query',
@ -50,10 +45,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)