discord-slider is a package that allow you to easily create multipage help commands (for example) with buttons.
Install
npm install discord-slider
Setup
const discord = require('discord.js');
const client = new discord.Client();
require('discord-slider')(client);
If you want to use discord-buttons, you don't need to put require("discord-buttons")
. discord-slider is based on discord-buttons and automatically setup it.
Example
channel.createSlider(userID, [embed0, embed1, embed2, embed3])
After 5 minutes, the buttons will become disabled.
Contact
Discord