https://github.com/greensky-gs/discord-paginator
https://github.com/greensky-gs/discord-paginator
discord pagination paginator
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/greensky-gs/discord-paginator
- Owner: Greensky-gs
- Created: 2022-12-14T14:00:45.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-22T06:12:34.000Z (almost 2 years ago)
- Last Synced: 2025-01-24T04:46:20.898Z (9 months ago)
- Topics: discord, pagination, paginator
- Language: TypeScript
- Homepage: https://npmjs.com/package/dsc-pagination
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discord paginator
This is a module for Discord pagination embeds
## Doc
To use the paginator, simply use it like so :
```js
const { Paginator } = require('dsc-pagination');const paginator = new Paginator({
interaction: /* The command interaction goes here */,
embeds: /* The embed pages goes here */,
user: /* the only user allowed to interact goes here */
})
```And you can add more options in the initialisation of the paginator
## Propreties
You have access to only two propreties of the paginator : `index` (wich is the current index of the embeds) and `stop()`, wich is a function that stop the paginator.