Discord Embeds Paginator is a customizable pagination module for Discord bots using Discord.js. It allows you to display embed pages and navigate through them using buttons.
To install Discord Embeds Paginator, use npm:
npm install discord-embeds-paginator@latest
const { DiscordEmbedsPaginator } = require("discord-embeds-paginator");
// Create an instance of DiscordEmbedsPaginator
const paginator = new DiscordEmbedsPaginator([], {
customId: "DiscordEmbedsPaginator",
customStyle: ButtonStyle.Secondary,
customEmojis: { previous: "◀️", next: "▶️" },
customEmbeds: [],
timeout: 60000,
});
// Create the paginator message
paginator.createPaginatorMessage(channel);
Do you use Discord-Embeds-Paginator and are you satisfied? You can support us with a one-time donation to help us improve our work: Donate here
A class representing a Discord Embeds Paginator.
new DiscordEmbedsPaginator(pages, (options = {}));
Creates a new instance of DiscordEmbedsPaginator.
- createPaginatorMessage(channel): Creates the paginator message in the specified channel.
- createPageButtons(): Creates the navigation buttons for the paginator.
- createButtonCollector(message): Sets up the button collector to handle button interactions.
- getPageEmbed(): Retrieves the current page embed.
- customId: The custom ID for the paginator.
- customStyle: The custom button style for the paginator.
- customEmojis: An object containing custom emojis for the previous and next buttons.
- customEmbeds: An array of embeds representing the pages.
- timeout: The timeout for the paginator in milliseconds.
If you have any issues don't hesitate to report it via GitHub Issues.
If you need help or assistance please either ask in my Discord Server.
This project is licensed under the MIT License.
Developed by @deemdev with ❤️