Skip to main content

Button Paginator

discord-py-slash-command logo With discord-py-slash-command

Button paginator using discord_slash

Welcome!

It's a paginator for discord-py-slash-command! Thanks to the original creators khk4912 (khk4912 /EZPaginator) and decave27 (decave27/ButtonPaginator)!

This project is open source ⭐, feel free to take inspiration from the code

The library being used has an official discord server, so if you have a question about how it works, feel free to ask it on this server.

Install

pip install --upgrade dpy-slash-button-paginator

Example

from ButtonPaginator import Paginator
from discord.ext import commands
from discord_slash import SlashCommand
import discord

bot = commands.Bot("your prefix")
slash = SlashCommand(bot)

@bot.event
async def on_ready():
    print(f"Logged in as {bot.user}!")

@bot.command()
async def button(ctx):
    embeds = [discord.Embed(title="Page1"), discord.Embed(title="Page3"), discord.Embed(title="Page3")]
    contents = ["Text 1", "Text2", "Text3"]
    e = Paginator(bot=bot,
                  ctx=ctx,
                  header="An example paginator",
                  embeds=embeds,
                  contents=contents,
                  only=ctx.author)
    await e.start()

bot.run("your token")

License

This project is under the MIT License.

Contribute

Anyone can contribute to this by forking the repository, making a change, and create a pull request!

But you have to follow these to PR.

Thanks to

Metadata

Release files for dpy-slash-button-paginator 1.0.post2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dpy-slash-button-paginator 1.0.post2
File Size Uploaded
dpy-slash-button-paginator-1.0.post2.tar.gz 6.4 kB Details

Release files / dpy-slash-button-paginator-1.0.post2.tar.gz

Download URL dpy-slash-button-paginator-1.0.post2.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bf42dd083ba094a29eaf76cf81256245dea7034922606a64b9d96a44522f642d
BLAKE2b-256 checksum
How to use checksums
6650c35a6183de085cc9d951da570e59732d29d5f7f9ce1b231e9b5921bc3d8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.0.post2 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page