https://github.com/chakany/paginationembed
An Easy and Stylish way of doing Discord Embed Pagination
https://github.com/chakany/paginationembed
discord discordjs discordjs-v13 embed embedpagination hacktoberfest pagination
Last synced: 4 months ago
JSON representation
An Easy and Stylish way of doing Discord Embed Pagination
- Host: GitHub
- URL: https://github.com/chakany/paginationembed
- Owner: chakany
- License: mit
- Created: 2021-09-14T12:33:04.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T15:11:17.000Z (over 2 years ago)
- Last Synced: 2025-02-17T05:35:25.503Z (5 months ago)
- Topics: discord, discordjs, discordjs-v13, embed, embedpagination, hacktoberfest, pagination
- Language: TypeScript
- Homepage:
- Size: 1.05 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# paginationembed
An Easy and Stylish way of doing Discord Embed Pagination
[](https://github.com/jacany/paginationembed/actions/workflows/ci.yml)
---
## Usage
```js
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:
```sh
npm install @jacany/paginationembed
```or Yarn:
```sh
yarn add @jacany/paginationembed
```