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.button_paginator 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.2.1.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

discord_py_paginators-0.2.1-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord_py_paginators-0.2.1.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for discord_py_paginators-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c0b558b31586ca9e679a29d978fe89f4da0f0ebe0253ff7cee2c347c6abf901c
MD5 6bd3588a4993da0820f552e2da89e615
BLAKE2b-256 5e7debd456d6e480feb90210699f372641b473466143bf41ea1be92b492e5c8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discord_py_paginators-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9e2cd4a10aa19d104e420b5186c6624a50d2c2cab03af149462861f0b3876e4
MD5 14a6792e7eb56e80d591bc98e5d6a2d1
BLAKE2b-256 f735407fc9c221a52f5d543fa3e9bb54f5a720d247e978e3d1c3605348c0d6a2

See more details on using hashes here.

Supported by

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