mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-20 03:47:02 -04:00
wip
This commit is contained in:
parent
7195d43c74
commit
6173b085a3
26 changed files with 1112 additions and 91 deletions
22
labscore/paginator.js
Normal file
22
labscore/paginator.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue