1.0.5 • Published 3 years ago

@ryukobot/paginationembed v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

paginationembed

An Easy and Stylish way of doing Discord Embed Pagination

CI


Usage

const { MessageEmbed } = require("discord.js");
const { MessagePagination } = require("@ryukobot/paginationembed");

const array = ["Element 1", "Element 2", "Element 3"];

const embed = new MessagePagination({
	embed: new MessageEmbed(),
	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

Screenshot_20210917_142849

Installing

With NPM:

npm install --save @ryukobot/paginationembed

or Yarn:

yarn add @ryukobot/paginationembed
1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago