pissbot-9000/labscore/paginator.js
derpystuff 6173b085a3 wip
2022-05-21 16:21:08 +02:00

22 lines
No EOL
696 B
JavaScript

const Paginator = require('detritus-pagination').PaginatorCluster
const paginators = {}
function createPaginator(client){
return new Paginator(client, {
// Maximum number of milliseconds for the bot to paginate
// It is recommended not to set this too high
// Defaults to 300000ms (5 minutes)
maxTime: 300000,
// Whether it should jump back to page 1 if the user tried to go past the last page
// Defaults to false
pageLoop: true,
// Whether a page number should be shown in embed footers
// If a string is passed as page, it will append the page number to the string
pageNumber: true
});
}
module.exports = {
createPaginator
}