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.
- Use the black formatter.
- Use conventional commits.
- Test.
Thanks to
- khk4912 - Original Paginator developer
- decave27 - Creator of the discord-components paginator that this was based on
- LordOfPolls, fl0w, eunwoo, and everyone else who works on the discord-py-slash-command lib
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dpy-slash-button-paginator-1.0.post2.tar.gz | 6.4 kB | Without provenance | Details for dpy-slash-button-paginator-1.0.post2.tar.gz |
Security for dpy-slash-button-paginator 1.0.post2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.