@jacany/paginationembed
v2.0.0
Published
Easy array pagination in Discord.js v14
Downloads
5
Maintainers
Readme
paginationembed
An Easy and Stylish way of doing Discord Embed Pagination
Usage
const { EmbedBuilder } = require("discord.js");
const { MessagePagination } = require("@jacany/paginationembed");
const array = ["Element 1", "Element 2", "Element 3"];
const embed = new MessagePagination({
embed: new EmbedBuilder(),
itemsPerPage: 2,
startPage: 1,
title: "Values",
timeout: 300000, // Milliseconds before expiry
message: Message, // Pass your Message Object
array,
callbackfn: (value, index) => `**${index + 1}.** ${value}`,
});
embed.build();
Output
Installing
With NPM:
npm install @jacany/paginationembed
or Yarn:
yarn add @jacany/paginationembed