Licence
ISC
Version
1.0.6
Deps
1
Size
15 kB
Vulns
0
Weekly
0
��
=��� | Installation
npm i discord-buttons-page-v13
=��� | Setup
Setup code
const Discord = require('discord.js'); // Define discord.js module with npm i discord.js@dev
const bot = new Discord.Client({ // Creating client of discord.js
// Activate intents for discord.js V13
});
' | Examples
In index.js
const {createPages} = require('discord-buttons-page-v13');
bot.on('message', message => {
if(message.author.bot) return;
if(message.content != `!${commandName}`) return;
let embed1 = new Discord.MessageEmbed()
.setTitle('Exemple 1');
let embed2 = new Discord.MessageEmbed()
.setTitle('Exemple 2');
const embeds = [embed1, embed2];
const ButtonStyle = "PRIMARY"; // Or SECONDARY, SUCCESS, DANGER.
const msg_delete = "!help for help command !"; // D�fault : The embeds pages is closed !
createPages(bot, message, embeds, ButtonStyle, true, false, msg_delete);
});
=�h�<���
�� =�h�<��� | Help
=�e� | Contact
If you have any other problems or questions, you can join our Support Server !


