huruhuru - v0.0.2
    Preparing search index...

    Class MessagePagination<T>

    An interactive Components V2 message. Create one with paginate. Items are snapshotted and templates are formatted on each render. Updates are serialized; a stopped pagination cannot be restarted.

    Type Parameters

    Index
    accentColor: RGBTuple
    header?: string
    items: readonly (readonly T[])[]
    maxPage: number
    • Parameters

      • message: Message

      Returns void

    • Build the current page without mutating the stored item templates.

      Returns ContainerBuilder

    • Stop collecting immediately, then disable the buttons. Safe to repeat.

      Returns Promise<void>

    • Refresh the active message. Does nothing after the pagination stops.

      Returns Promise<void>