huruhuru - v0.0.1
    Preparing search index...

    Class MessagePagination

    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
    Index
    • Parameters

      • currentPage: number
      • maxPage: number
      • sections: SectionBuilder[][]
      • accentColor: RGBTuple
      • Optionalheader: string

      Returns MessagePagination

    accentColor: RGBTuple
    currentPage: number
    header?: string
    maxPage: number
    sections: SectionBuilder[][]
    • Parameters

      • message: Message<boolean>

      Returns void

    • Returns ContainerBuilder