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-pagination
Usage
Guide
from Paginator 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(embeds, author_id, timeout))
Example
You may view implementation of this library in PointsBot.
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-2.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for disnake_pagination-2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f1e413a2d1cb418d0da1b9573f00a64422eca126692c9d86eaab88cd69fc09c |
|
MD5 | de34a5060763e423270f34a4f046c3ed |
|
BLAKE2b-256 | c00f833bdad0599d697bb1142f848d00b98c6f3b6e12b06c000a99bfe68a2345 |