Skip to main content

Extension for discord.py that provides various paginators.

Project description

Welcome to discord-py-paginators’s documentation!

Extension for discord.py that provides various paginators.

Installation

Stable

python -m pip install discord-py-paginators

Dev

python -m pip install -U "discord-py-paginators @ git+https://github.com/Soheab/discord-py-paginators"

Usage

import discord
from discord.ext import commands
from discord.ext.paginators import ButtonPaginator

bot = commands.Bot(command_prefix=commands.when_mentioned, intents=discord.Intents(guilds=True, messages=True))

@bot.command()
async def paginate(ctx):
    list_with_many_items = list(range(100))
    paginator = ButtonPaginator(list_with_many_items, author_id=ctx.author.id)
    await paginator.send(ctx)
    # Enjoy!


bot.run("token")

Examples

Examples can be found in the examples directory.

Contact

Send a DM on discord at Soheab_, join the discord server or ping me in the discord.py server.

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

discord_py_paginators-0.3.0.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

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

discord_py_paginators-0.3.0-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file discord_py_paginators-0.3.0.tar.gz.

File metadata

  • Download URL: discord_py_paginators-0.3.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for discord_py_paginators-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5c854faafdbef88ea59ab342c2bda887dc6e03a211d8031daeec80b53d1d0c25
MD5 38d39f75ff53548e74fd0112e739858d
BLAKE2b-256 db22a09069f1e6f0255c3c3045bfa68d9c3d7cbd0e12ec4d8aca95fa2c5653b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for discord_py_paginators-0.3.0.tar.gz:

Publisher: python-publish.yml on Soheab/discord-py-paginators

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file discord_py_paginators-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for discord_py_paginators-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b6939668877e1cffa0264d98c5525f26b7db5822b6a94b7e83461b1a306664c
MD5 4337132a2dd053d88dc893c0294ee1ba
BLAKE2b-256 80b4df377875cb3021b9859c473b109f2a6aa06eab90d3d30f2943dff19bf70b

See more details on using hashes here.

Provenance

The following attestation bundles were made for discord_py_paginators-0.3.0-py3-none-any.whl:

Publisher: python-publish.yml on Soheab/discord-py-paginators

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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