Skip to main content

embedPages

An powerful yet customizable Embed Paginator

Program

const simplydjs = require("simply-djs");
let pages = [] // Contains array of MessageEmbed.

simplydjs.embedPages(interaction, pages, {
// options (Optional)
})

Output

image

Arguments:

simplydjs.embedCreate(
interaction: Discord.Message | Discord.CommandInteraction,
pages: Discord.MessageEmbed[]
options: pagesOption
)

Options pagesOption

ParameterTypeRequiredDefaultDescription
buttonsPagebuttonsdefault buttonsPass a Pagebuttons Object to customize the button
skipsbooleantrueEnable/Disable the first/last page buttons
deletebooleantrueEnable/Disable the Delete message button
dynamicbooleanfalseChange buttons corresponding to the page you are in
countbooleanfalseShow the current page number you are in
rowsMessageActionRow[]noneAdd custom rows to the message
timeoutnumber120000Show the current page number you are in
disable'Label' (or) 'Emoji' (or) 'None'labelRender the button with an emoji or a label.
Pagebuttons option

Pagebuttons

ParameterTypeDescription
firstBtnbtnTemplatePass an btnTemplate Object to customize the button
nextBtnbtnTemplatePass an btnTemplate Object to customize the button
backBtnbtnTemplatePass an btnTemplate Object to customize the button
lastBtnbtnTemplatePass an btnTemplate Object to customize the button
deleteBtnbtnTemplatePass an btnTemplate Object to customize the button