Skip to content

Seniatical/dpy-paginator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paginator

A pagination library for discord.py, comes with support for dropdown, button based pagination

Documentation

Installation

pip install git+https://github.com/Seniatical/dpy-paginator/

Button Pagination

from discord.ext.paginator import ButtonPaginator

pages = [
    {'content': 'Page 1'},
    {'content': 'Page 2'},
    {'content': 'Page 3'}
]
paginator = ButtonPaginator(pages=pages)

## In commands
await paginator.start(ctx=...)

Dropdown Pagination

from discord.ext.paginator import DropdownPaginator

pages = [
    ('Page 1', {'content': 'Page 1'}),
    ('Page 2', {'content': 'Page 2'}),
    ('Page 3', {'content': 'Page 3'})
]
paginator = DropdownPaginator(pages=pages)

## In commands
await paginator.start(ctx=...)

Releases

No releases published

Packages

No packages published

Languages