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.0.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

discord_py_paginators-0.2.0-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file discord-py-paginators-0.2.0.tar.gz.

File metadata

  • Download URL: discord-py-paginators-0.2.0.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for discord-py-paginators-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a9661bb3bc575368b852ece982085413ee95658f91a83ba19bfb49c7bcf636c9
MD5 7590dcfc3e2384fd5bb809acc32ef111
BLAKE2b-256 8a7c3b18d6c862b7f02ef1af361fe6bd1e0100026d477c3e700405f934247d8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discord_py_paginators-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e5feb5d6b2c0bdc735286c7ba676ba045fd3abb7fa99f4a258550bb205b93ae
MD5 c1bc2f85bc57bfcd400585c56f71ae4f
BLAKE2b-256 468b03acfe065739fff94ec40e7fecf793a6a68f07204b418b093ec32d620d35

See more details on using hashes here.

Supported by

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