Button Pagination
🏠 Homepage
npm install discord-button-pagination
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
const { BP, ButtonPagination } = require("discord-button-pagination")
const bP = new BP(client)
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('messageCreate', message => {
if (message.content === "pagination") {
new ButtonPagination(
message,
[
embed1,
embed2
],
"leftButtonEmoji",
"rightButtonEmoji",
"trashButtonEmoji",
60e3
)
}
});
client.login('token');
- MaIn Website: bugodev.cf
- Github: @BUGO07
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2021 bugo07.
This project is Apache 2.0 licensed.