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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98f0bf173af492e6e70d72910ff559a606bc3aafce5b86fe049eef39e8f54650 |
|
MD5 | d4897f3b4931e659a272e95af8fa43b1 |
|
BLAKE2b-256 | f9d998b1c252d08f1ad27f7fe6835fbdb8d44da2b45ae68e2a81ef006df9c099 |
Close
Hashes for discord_py_paginators-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a4d7e950df29fb4bcb39bbac5287db754f92e1e20edadb409cb4814b8dccad6 |
|
MD5 | 66a99f143a2539e4ce7288bc2e834f44 |
|
BLAKE2b-256 | 59329655465f355856331339513a86e55372cb8430c9e349effc2891d9347e3a |