The author of all embeds.
The color of all embeds.
The description of all embeds.
The fields of all embeds.
The footer of all embeds.
The image of all embeds.
The thumbnail of all embeds.
The timestamp of all embeds.
The title of all embeds.
The URL of all embeds.
Embed in the current page.
Adds a field to the fields of all embeds.
The name of the field.
The value of the field.
Whether the field is inline to the other fields.
Files to attach to all embeds.
Files to attach.
Build the Pagination Embeds.
const { Embeds } = require('discord-paginationembed');
const { MessageEmbed } = require('discord.js');
// Under message event.
const embeds = [];
for (let i = 0; i < 5; ++i)
embeds.push(new MessageEmbed().addField('Page', i + 1));
new Embeds()
.setAuthorizedUsers([message.author.id])
.setChannel(message.channel)
.setClientAssets({ prompt: 'Yo {{user}} wat peige?!?!?' })
.setArray(embeds)
.setPageIndicator(false)
.setPage(1)
.setTimeout(69000)
.setNavigationEmojis({
back: '◀',
jump: '↗',
forward: '▶',
delete: '🗑'
})
.setFunctionEmojis({
'⬆': (_, instance) => {
for (const embed of instance.array)
embed.fields[0].value++;
},
'⬇': (_, instance) => {
for (const embed of instance.array)
embed.fields[0].value--;
}
})
.setDescription('This is one of my embeds with this message!')
.setColor(0xFF00AE)
.setTimestamp()
.build();```
Sets the array of MessageEmbed to paginate.
An array of MessageEmbed to paginate.
Set the author of all embeds.
The name of the author.
The icon URL of the author.
The URL of the author.
Sets the color of all embeds.
The color of all embeds.
Sets the description of all embeds.
The description of all embeds.
Sets the footer of all embeds.
The footer text.
URL for the footer's icon.
Sets the image of all embeds.
The image of all embeds.
Sets the thumbnail of all embeds.
The thumbnail of all embeds.
Sets the timestamp of all embeds.
The timestamp or date.
Sets the title of all embeds.
The title of all embeds.
Sets the URL of all embeds.
The URL of all embeds.
Removes, replaces, and inserts fields in all embeds (max 25).
The index to start at.
The number of fields to remove.
The name of the field.
The value of the field.
Set the field to display inline.
Transforms all embeds to plain objects.
Generated using TypeDoc
A pagination mode that uses an array of MessageEmbed to paginate.
PaginationEmbed