Unofficial button paginator using discord_slash
Project description
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 git+https://github.com/Catalyst4222/ButtonPaginator
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
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
Close
Hashes for dpy-slash-button-paginator-1.0.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45ba8b2c440c1ac2e91b3d4cfe2f219dde6cc359e0fd254e14d5176b17994f78 |
|
MD5 | 13e26d28d508e586cc8e639f40b4396a |
|
BLAKE2b-256 | e119b4dca5925c44b38bb7602b631cee92e94668a00297db86e27309110448f0 |