Skip to content

BUGO07/discord-button-pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to discord-button-pagination 👋

Version License

Button Pagination

Install

npm install discord-button-pagination

Example

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');

Websites

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 bugo07.

This project is Apache 2.0 licensed.

About

Button Pagination For DiscordJS (DISCONTINUED)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published