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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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