Djs-paginate - Simpler discord.js v13 embed pagination tool

Overview

djs-paginate

Simpler discord.js v13 embed pagination tool inspired by discordjs-button-pagination.

Installation

npm install @eugabrielsilva/djs-paginate

Usage

// Import the module
const paginate = require('@eugabrielsilva/djs-paginate');

// Create your embed pages
const { MessageEmbed } = require('discord.js');

let page1 = new MessageEmbed({
    title: 'Page 1',
    description: 'This is the first page'
});

let page2 = new MessageEmbed({
    title: 'Page 2',
    description: 'This is the second page'
});

// Create an array with your pages
let pages = [page1, page2];

// Call the paginate() method passing the message object (from client messageCreate event) and the pages array
paginate(message, pages);

Options

The third argument to the paginate() function is an object with one or more of the following parameters:

Parameter Description Type Default
timeout Time (in seconds) to disable the paginator collector after no interactions are received. int 60
prevText Text to show in the previous button. string "⏪ Anterior"
nextText Text to show in the next button. string "Próxima ⏩"
pageText Text to show before the page counter. string "📄 Página"
pageSeparator Text to show between the page counter. string "/"

Example:

paginate(message, pages, {
    timeout: 120,
    prevText: 'Previous',
    nextText: 'Next',
    pageText: 'Page',
    separatorText: 'from'
});

Credits

Library developed and currently maintained by Gabriel Silva.
Special thanks to ryzyx for the original idea.

You might also like...

Cloudflare Workers Discord embed & keep URL example scripts.

Using Cloudflare Workers for Discord embed support Requirements: Your own image host, on a domain that you control via Cloudflare. Limitations: 100,00

Dec 27, 2022

Somewhat light jQuery pagination plugin thing.

jq-paginator Somewhat light jQuery pagination plugin thing. Inspired by other pagination libraries, but hopefully a bit simpler. Usage Pass options as

Jan 18, 2021

Umut Bayraktar YouTube Özel Discord.js v13 Uyumlu Başvuru Botu Altyapısı, Glitch ve PC Uyumludur!

Discord.js v13 Başvuru Botu Umut Bayraktar Youtube Özel Discord.js v13 Başvuru Botu Altyapısı. Glitch.com'da Kullanacak İseniz .env İsimli Dosyaya Bot

May 31, 2022

An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules.

An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules.

Multiguild-Waitingroom-v13 An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules. It is m

Dec 11, 2022

Umut Bayraktar Youtube Özel Discord.js v13 Müzik Botu Altyapısı.

Discord.js v13 Müzik Botu Umut Bayraktar Youtube Özel Discord.js v13 Müzik Botu Altyapısı. .env İsimli Dosyaya Bot Tokeninizi Yazın ve Kullanın. Umut

May 31, 2022

Skeleton for a discord.js v13 bot written in TS with Slash Command support.

Discord.js v13 Bot Skeleton/Core This repository is a template for creating a Discord bot using Discord.js v13 with Slash Command support. This projec

Nov 2, 2022

Discord.js bot v13. Russian bot

Nutella-bot Discord.js bot v13. Russian bot Бот создан в России, он набирал популярность среди многих серверов. Завоевал 42 тысячи пользователей, и бы

Jun 5, 2022

A discord.js v13 bot for CreatorHub

A discord.js v13 bot for CreatorHub

CreatorBot A discord.js v13 bot for CreatorHub CreatorHub Discord Server CreatorHub is a growing community of content creators and gamers alike. The m

Dec 25, 2022

A template for Discord.js V13 w/Webserver

Discord V13 için altyapı: HEROKU gibi hostingler için db dosyasını yedekleyip otomatikmen yeniden alır. Application command desteği Yedek sistemi. Sür

Jan 23, 2022
Releases(v1.0.0)
Owner
Gabriel Silva
Brazilian web developer, creator and maintainer of @glowieframework and other crazy projects.
Gabriel Silva
Easy-to-use , actively maintained discord bot written in dJS V13 with customizable features

Multi-purpose discord bot Found a bug? Notes There are some modules missing, you can still start the bot but there are some things within the source t

locus 7 Nov 28, 2022
Full logging system using the djs library (v13.6.0)

Loggin-system-djs-v13.6 Full logging system using the djs library (v13.6.0) NOW ONTO MULTIPLE DISCLAIMERS: ◻ It is crucial that you first understand t

NoBoDy 12 Aug 26, 2022
┣⤙🔨 Simpler Discord Bot mit Feature wie Jail, Moderation und vieles mehr.

discord-bot ❓ 〣 ÜBER DIESES PROJEKT Dieses Projekt dafür da, das Sie ganz einfach einen coolen Discord Bot haben können mit fast 0 Coding Erfahrung. ❤

Synom. 2 Mar 28, 2022
djs-helper is a JavaScript library that helps you to develop your own Discord Bot

djs-helper is a JavaScript library that helps you to develop your own Discord Bot, Still under development, more features will be added in the future

Amir. 3 Oct 3, 2022
v13 butonlu + mongodb'li register botudur. Sadece Merakımdan V13 uğraştım, devamı geleceğini düşünmüyorum. İstek üzerine yapılmıştır

Testleri yapılmıştır. Hiçbir hatası bulunmamaktadır. Starlarınızı bekliyorum. Yapmanız gereken adımlar settings.json dosyasının içindeki idleri doldur

null 1 Dec 20, 2022
Yet another advanced djs slash command handler made by dano with ❤️

Advanced djs slash command handler Yet another advanced djs slash command handler made by dano with ❤️ Ultimate, Efficient, Slash command handler for

null 5 Nov 7, 2022
This DJS ticket system with transcripts is fully configurable, you can change the transcripts channel, tickets channel, and more

This DJS ticket system with transcripts is fully configurable, you can change the transcripts channel, tickets channel, and more! This command uses embeds, and buttons.

LunarCodes 6 Oct 18, 2022
OptiBOT - My discord.js V13 discord bot.

OptiBOT Just a discord.js v13 bot for my discord server. if you plan to use this bot for your server, dont. This i made this bot just for learning js

PrecisionEXTP 1 Jan 3, 2022
A unofficial discord.js fork for creating selfbots [Based on discord.js v13]

About discord.js-selfbot-v13 is a Node.js module that allows user accounts to interact with the Discord API v9. I don't take any responsibility for bl

March 7th 239 Jan 4, 2023
A feature-rich Giveaway Bot For Discord Written In Discord.js v13. Ft. Slash Commands & Buttons. Make Giveaways and…

Giveaway - Discord Bot A feature-rich Giveaway Bot For Discord Written In Discord.js v13. Ft. Slash Commands. Make Giveaways and more..! Explore the d

Chethan Yadav 27 Dec 5, 2022