# discord-pagination
This is a simple module for discord.js v.12 where you can working with pages
Init: const Pagination = new (require('discord-pagination'))(Discord) //Sets vars to constant and Discord library
Example
/* Full usage//Old style (for default value, use undefined)Pagination.showPage(arrayContent, page, onOneElements)Pagination.pagesArray(arrayContent, onOneElements)Pagination.message(message, messageRender, arrayContent, onOneElements, page, time, pageButtons, loop, removeEmojiAtEnd)Pagination.optionChooser(message, arrayContent, chooseHandler, delete, atts, time, timeout) //New style (for default value, remove object element)Pagination.showPage({content: arrayContent,page: page,onOne: onOneElements})Pagination.pagesArray({content: arrayContent,onOne: onOneElements})Pagination.message({msg: message,render: messageRender,content: arrayContent,onOne: onOneElements,page: page,time: time,pageButtons: pageButtons,loop: loop,remojiend: removeEmojiAtEnd})Pagination.optionChooser({msg: message,content: arrayContent,chooseHandler: chooseHandler,deletee: delete,atts: attempts,time: time,timeout: timeout})*/ const Discord = client = testCon = 'a' 'b' 'c' 'd' 'e' 'f''g' 'h' 'i' 'j' 'k' 'l''m' 'n' 'o' 'p' 'q' 'r''s' 't' 'u' 'v' 'w' 'x''y' 'z' `Test!\nPage: /\n` msgnew Discord clientclient
Customize
DiscordPagination/* [...] is an arrayMust be like this:[{e: '◀', act: 'prev'}, {e: '⏹', act: 'stop'}, {e: '▶', act: 'next'}]e - emojiact - actionaction can be a string (prev, next, stop (delete)) or function to create your own actionsif function, parametrs is (message, reaction, pages, page, collector, loop, options)*/