discord-listing-embed-pages
v1.0.2
Published
Create a discord embed pages using this package
Downloads
4
Maintainers
Readme
How to use
const { embedPages } = require('discord-listing-embed-pages')
let array = ['1', '2', '3', '5', '6']
let options = {
perPage: 3,
title: "Title",
color: "BLUE",
timestamp: true,
fields: [{ name: "Field name", value: "Field value", inline: true }]
}
embedPages(client, message, array, options) // if no options add {} instead
// Default options
options.timestamp = false
options.footer = null
options.footerImage = null
options.thumbnail = null
options.perPage = 4
options.user = message.author
options.joinBy = '\n'
options.fields = []
options.color = null
options.image = null
options.emojis = {
first_track: '⏮️',
previous_track: '◀',
next_track: '▶',
last_track: '⏭️',
delete: '🗑',
jump_to: '↗️'
}