Extension for discord.py that provides various paginators.
python -m pip install discord-py-paginators
Note
This requires git to be installed on your system.
python -m pip install -U "discord-py-paginators @ git+https://github.com/Soheab/discord-py-paginators"
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 can be found in the examples directory.
Send a DM on discord at Soheab_, join the discord server
or ping me in the discord.py server.