huruhuru - v0.0.1
    Preparing search index...

    Class MessagePagination<T>

    Handles interactive paginated messages using components v2 buttons.

    Create an instance via paginate(...) which will build pages and register the message component collector automatically.

    Methods:

    • nextPage() / prevPage() to change the page
    • stop() to disable buttons and stop listening

    Type Parameters

    Index
    • Type Parameters

      Parameters

      • currentPage: number
      • maxPage: number
      • items: T[][]
      • accentColor: RGBTuple
      • Optionalheader: string

      Returns MessagePagination<T>

    accentColor: RGBTuple
    currentPage: number
    header?: string
    items: T[][]
    maxPage: number
    • Parameters

      • message: Message<boolean>

      Returns void

    • Returns ContainerBuilder