Skip to content

Soheab/discord-py-paginators

Repository files navigation

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

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"

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.