Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.38 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.38 KB

Example Paginator Bot

This is just a quick example to demonstrate how the paginator works.

Setup

npm install

Update the config.js file with your own bot token, client id and guild id.

npm run start

ReactionPaginator

SelectPaginator

Usage

The following commands are available as demonstrations:

/advanced-pagination

This is an action row pagination example that uses two select menus and a row of buttons for navigation. It makes API calls to dynamically create page content.

advanced-pagination-gif

/action-row-pagination

This is an action row paghination example that uses both buttons and a select menu for navigation. It makes API calls to dynamically create page content.

action-row-pagination-gif

/custom-react-pagination

A customised reaction example.

react-paginator-gif

/custom-button-pagination

A customised button example.

button-paginator-gif

/custom-select-pagination

A customised select example.

select-paginator-gif

/dynamic-button-pagination

A dynamic button example where the pages are not provided up front.

/react-pagination

A basic reaction example.

/button-pagination

A basic button example.

/select-pagination

A basic select example.