A simple Embed Paginator for your projects made with disnake.
Project description
Disnake Paginator
A simple Embed Paginator developed for projects made with disnake, a fork of discord.py.
Installation
You can use pip to install this library.
pip install disnake-paginate
Usage
Guide
from Paginate import CreatePaginator
from disnake import Embed
embeds = [
Embed(description="First Embed"),
Embed(description="Second Embed"),
Embed(description="Third Embed"),
Embed(description="Fourth Embed")
]
timeout = 120.0 # Optional
author_id = ctx.author.id # Optional, If not specified, anyone can interact with pagination buttons.
await ctx.send(embed=embeds[0], view=CreatePaginator(ctx, embeds, author_id, timeout))
Contributing
- Pull requests and issues are welcome.
- Consider giving this repository a ⭐, It is highly appreciated!
License
This repository has been made available via MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
disnake-pagination-1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for disnake_pagination-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79e911b73daf9c9020509b13a7eb112c6abf9238733b35233edf210622efd414 |
|
MD5 | 667e3d8edc53bde73bbf2a3d863b2928 |
|
BLAKE2b-256 | c422e9a0d579d90f806d8e58d9a87e34c52cdd8a6f9baf1482c564dc6ba833f5 |