Abstract
Protected
constructorBase pagination class that works with collector and it's events.
Optional
data: PaginationDataData from which to build BasePagination.
Private
_messageAction that will be completed after the pagination was sent.
The buttons of this pagination. By default is an empty array.
Collector that collects button interactions.
Options for collecting button interactions.
Current page number. Zero-based. By default is zero.
Embeds of this pagination. By default is an empty array.
Options for filtering button interactions. By default singleUserAccess and noAccessReply are true. And noAccessReplyContent is "You're disallowed to use this very pagination!".
Indicates whether this pagination sent or not. By default is false.
Options for sending out message.
How long the pagination will exist (in milliseconds). By default is zero.
Private
_buildProtected
_collectedPrivate
_disableDisables or enables button.
Raw button data.
Button builder.
Page number.
Protected
_formForms collector.
Interaction Collector.
Message that collector should stick to.
Optional
user: UserUsed only if singleUserAccess is true. Needed only if only one user should be able to use pagination.
Private
_formForms filter for InteractionCollector.
Function that filters out interactions.
Message that collector should stick to.
Optional
user: UserNeeded only if one user should be able to use pagination and filterOptions onlyOneUser is true.
Forms filter for InteractionCollector.
Function that filters out interactions.
Protected
_getPrivate
_getProtected
_setProtected
_setSets collector of the pagination.
Collector that collects button interactions.
Collector that collects button interactions.
Protected
_setProtected
_setPrivate
_setupSetups data from another base pagination.
BasePagination.
Protected
_stopMethod that handles stop
event.
Updates pagination.
Reason of collector's stop event.
Message that was sent or Interaction that was replied.
Button's customId. Should be a string.
Inserts embeds.
Pagination.
Embed(-s) that is/are meant to be inserted.
Optional
index: numberZero-based location in the array there the embed(-s) should be inserted.
Removes embed(-s) by it's/theirs index(-es) in the array of embeds.
Pagination.
Zero-based location in the array from which to start removing embeds.
Quantity of embeds to remove.
Abstract
sendSets action that will be completed after the pagination was sent.
Pagination.
Action that will be completed.
Sets button(-s). Overrides current button(-s).
Pagination.
Button(-s) that is/are meant to be set.
Sets collector options. Overrides current options.
Pagination.
Options for collecting button interactions.
Sets embed(-s). Overrides current embed(-s).
Pagination.
Embed(-s) that is/are meant to be set.
Sets filter options. Overrides current options.
Pagination.
Options for filtering out button interactions.
Sets options for sending out message.
Pagination.
Options for sending out message.
Sets action that will be completed after the pagination was stopped.
Pagination.
Action that will be completed.
Sets pagination active phase duration.
Pagination.
Time in milliseconds.
Optional
bypassLibraryLimits: booleanShould the time bypass library limit or not.
Generated using TypeDoc
Base pagination class that works with collector and it's events.