Pycord paginator for messages and embeds with reactions or buttons.
Project description
Pycord Paginator
Pycord Paginator is a library to paginate your messages or embeds when using Pycord.
⚠ This library is a fork of https://github.com/FlamptX/paginator.py, made for Diskord.
To install the library, open your terminal and run this command:
pip install pycord-paging
Example with reactions:
from discord import Embed
from discord.ext import commands
from paginator import Paginator, Page
bot = commands.Bot(command_prefix="!")
paginator = Paginator(bot)
@bot.event
async def on_ready():
print("Bot online")
@bot.command()
async def paginator(ctx):
pages = [
Page(embed=Embed(title="Page #1", description="Testing")),
Page(embed=Embed(title="Page #2", description="Still testing")),
Page(embed=Embed(title="Page #3", description="Guess... testing"))
]
await paginator.send(ctx.channel, pages, type=1, author=ctx.author, disable_on_timeout=False)
bot.run("...")
Example with buttons:
from discord import Embed
from discord.ext import commands
from paginator import Paginator, Page
bot = commands.Bot(command_prefix="!")
paginator = Paginator(bot)
@bot.event
async def on_ready():
print("Bot online")
@bot.command()
async def paginator(ctx):
pages = [
Page(embed=Embed(title="Page #1", description="Testing")),
Page(embed=Embed(title="Page #2", description="Still testing")),
Page(embed=Embed(title="Page #3", description="Guess... testing"))
]
await paginator.send(ctx.channel, pages, type=2, author=ctx.author, disable_on_timeout=False)
bot.run("...")
Docs will be published soon... 👀
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
pycord-paging-1.0.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for pycord_paging-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3d4788e5332e055e7dbef88a267aa162acc9b6fd35a2931bc62d9932d6ce474 |
|
MD5 | f206b35f6f3e607c5f644bf981c3bcaf |
|
BLAKE2b-256 | 4f2222d418d4c03ae673b2a39116e88d246dfbc3674a0c6d8de35c27db9e197b |