Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycord_paging-1.0.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file pycord-paging-1.0.0.tar.gz.

File metadata

  • Download URL: pycord-paging-1.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for pycord-paging-1.0.0.tar.gz
Algorithm Hash digest
SHA256 92498a953086833898021d1a75654b95e74adad6873ca7160e295ba729db5e54
MD5 b5bf189d53f7121667ef07298faec940
BLAKE2b-256 e831ff72919519026db4d42404b5f2c57b0eb2e04833cf6c3f10b889fbe8370d

See more details on using hashes here.

File details

Details for the file pycord_paging-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pycord_paging-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for pycord_paging-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3d4788e5332e055e7dbef88a267aa162acc9b6fd35a2931bc62d9932d6ce474
MD5 f206b35f6f3e607c5f644bf981c3bcaf
BLAKE2b-256 4f2222d418d4c03ae673b2a39116e88d246dfbc3674a0c6d8de35c27db9e197b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page