const{ MessageEmbed, Client, Intents }=require("discord.js");constembeds=[newMessageEmbed().setTitle("Demo Page 1"),newMessageEmbed().setTitle("Demo page 2"),newMessageEmbed().setTitle("Demo page 3")];const{ Pagination }=require("discord-button-embed-pagination");constclient=newClient({intents: [Intents.FLAGS.GUILDS,Intents.FLAGS.GUILD_MESSAGES]});client.on('messageCreate',asyncmessage=>{if(message.content==="!pagination"){constpage=newPagination(embeds);awaitpage.sendTo(message.channel,/* Send channel */message.author/* UserResolvable of the user who can click the button */);}})
Options
Pagination Class
constpage=newPagination(embeds,//Send MessageEmbed Array"Page",//Footer Text(Default: ページ), Display example 'ページ1/3'1000*30,//Button timeout(Default: 1000*60(1 minute))//The ButtonOption Class Array)