mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-17 10:27:05 -04:00
22 lines
No EOL
696 B
JavaScript
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
|
|
} |