AbstractProtected ReadonlybotProtected ReadonlycodecProtectedcurrentProtected ReadonlycustomProtected ReadonlyidProtecteditemsProtected ReadonlyitemsProtected ReadonlymetaProtectedresultProtected ReadonlystartProtected ReadonlystartProtectedstateProtected ReadonlyttlProtected ReadonlyupdateStatic ReadonlyDefaultStatic ReadonlyDefaultProtectedbuildUtility to build a pagination ActionRow, considering next/previous pages and disabling buttons accordingly.
Builds this session's custom id, optionally with extra data.
Optionalextra: stringBuilds this session's custom id to a specific page, optionally with extra data.
Optionalextra: stringProtectedextractExtracts the referred page in a ButtonInteraction, if any.
ProtectedextractExtracts the referred page in a customId, if any.
ProtectedextractExtracts the referred page in an update interaction, if any.
ProtectedextractExtracts the referred page in an ModalMessageModalSubmitInteraction, if any.
ProtectedextractExtracts the referred page in an AnySelectMenuInteraction, if any.
Returns the bot that owns this session.
Returns the ID of the channel this session was started in.
Returns the current page of this session.
Returns the items of this current page.
Returns the end promise that will resolve to a SessionEndData when this session ends.
Returns the ID of the guild this session was started in, or null if in a DM.
Returns the identifier of this object.
Returns the amount of items the session shows per page.
Returns a readonly metadata collection of this object, if any.
Returns the next page of this session, or null if there is no next page.
Returns the previous page of this session, or null if there is no previous page.
Returns the result of this session.
Returns the filter for starting this session.
Returns the SessionStartInteraction that started this session.
ProtectedgetExtracts identity information from the interaction that started this session.
Returns the state of this session.
Returns the TTL of this session.
Returns the filter for update interactions of this session.
Returns the ID of the user that started this session.
ProtectedhandleHandles a button interaction whose customId matches this session.
ProtectedhandleHandles a modal submit interaction whose customId matches this session.
ProtectedhandleHandles a select menu interaction whose customId matches this session.
Returns whether the interaction that started this session has already been replied to.
AbstractonEnds the session.
AbstractonUpdates the session's state with an interaction.
Whether the session's TTL should be reset after this update.
ProtectedselfStarts the session. Alias of SessionManager#start(this).
Protected AbstractupdateHandles a page update.
A type of session that paginates a list of items.
For example: