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
buttonsPagebuttons❌default buttonsPass a Pagebuttons Object to customize the button
skipsboolean❌trueEnable/Disable the first/last page buttons
deleteboolean❌trueEnable/Disable the Delete message button
dynamicboolean❌falseChange buttons corresponding to the page you are in
countboolean❌falseShow the current page number you are in
rowsMessageActionRow[]❌noneAdd custom rows to the message
timeoutnumber❌120000Show 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