Emitted after the initial embed has been sent (technically, after the client finished reacting with enabled navigation and function emojis).
Emitted when the instance is finished by a user reacting with delete
navigation emoji
or a function emoji that throws non-Error type.
Emitted after the page number is updated and before the client sends the embed.
Emitted upon a user reacting on the instance.
Emitted when the awaiting timeout is reached.
Emitted upon an occurance of error.
An array of elements to paginate.
The authorized users to navigate the pages. Default: everyone
The channel where to send the embed.
Settings for assets for the client.
Whether the client's message will be deleted upon timeout. Default: false
The disabled navigation emojis. Available navigation emojis to disable:
Whether to set function emojis after navigation emojis. Default: false
The emojis used for function emojis. Function emojis are user-customised message reactions for modifying the current instance of the pagination such as modifying embed texts, stopping the pagination, etc.
The emojis used for navigation emojis. Navigation emojis are the default message reactions for navigating through the pagination.
The current page. Default: 1
Number of pages for this instance.
The time for awaiting a user action before timeout in ms. Default: 30000
Whether to show page indicator, or put it in embed's footer text (replaces the existing text) instead.
Default: false
The formatted page indicator. Default format: text
Adds a function emoji to the embed.
<PaginationEmbed>.addFunctionEmoji('π
±', (_, instance) => {
const field = instance.embed.fields[0];
if (field.name.includes('π
±'))
field.name = 'Name';
else
field.name = 'Naπ
±e';
});
The emoji to use as the function's emoji.
The function to call upon pressing the function emoji.
Deletes a function emoji.
The emoji key to delete.
Deletes all function emojis, and then re-enables all navigation emojis.
Sets the array of elements to paginate. This must be called first before any other methods.
An array of elements to paginate.
Set the authorized users to navigate the pages.
A user ID or an array of user IDs.
The channel where to send the embed.
The channel object.
Sets the settings for assets for the client.
The assets for the client.
Sets whether the client's message will be deleted upon timeout.
Sets the disabled navigation emojis.
// Disable specific navigation emojis
<PaginationEmbed>.setDisabledNavigationEmojis(['delete', 'jump']);
// Disable all navigation emojis
<PaginationEmbed>.setDisabledNavigationEmojis(['all']);
An array of navigation emojis to disable.
Sets whether to set function emojis after navigation emojis.
Set function emojis after navigation emojis?
Sets the emojis used for function emojis.
<PaginationEmbed>.setFunctionEmojis({
'π': (user, instance) => {
const field = instance.embed.fields[0];
if (field.name === 'Name')
field.name = user.tag;
else
field.name = 'Name';
}
});
An object containing customised emojis to use as function emojis.
Sets the emojis used for navigation emojis.
An object containing customised emojis to use as navigation emojis.
Sets to jump to a certain page upon calling PaginationEmbed.build().
The page number to jump to.
Sets the page indicator formatting function and placement.
Whether to show page indicator.
Pass footer
to display the indicator in embed's footer text (replaces existing text) instead.
Function for indicator formatting.
Sets the time for awaiting a user action before timeout in ms.
Timeout value in ms.
Generated using TypeDoc
The base class for Pagination Modes. Do not invoke.
EventEmitter