A simple Embed Paginator developed for projects made with disnake, a fork of discord.py.
You can use pip to install this library.
pip install disnake-pagination
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))
You may view implementation of this library in PointsBot.
- Pull requests and issues are welcome.
- Consider giving this repository a ⭐, It is highly appreciated!
This repository has been made available via MIT License.