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.
Links
Contact
Send a DM on discord at Soheab_, join the discord server or ping me in the discord.py server.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for discord-py-paginators-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9661bb3bc575368b852ece982085413ee95658f91a83ba19bfb49c7bcf636c9 |
|
MD5 | 7590dcfc3e2384fd5bb809acc32ef111 |
|
BLAKE2b-256 | 8a7c3b18d6c862b7f02ef1af361fe6bd1e0100026d477c3e700405f934247d8e |
Close
Hashes for discord_py_paginators-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e5feb5d6b2c0bdc735286c7ba676ba045fd3abb7fa99f4a258550bb205b93ae |
|
MD5 | c1bc2f85bc57bfcd400585c56f71ae4f |
|
BLAKE2b-256 | 468b03acfe065739fff94ec40e7fecf793a6a68f07204b418b093ec32d620d35 |