Socket
Socket
Sign inDemoInstall

dpy-slash-button-paginator

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dpy-slash-button-paginator

Unofficial button paginator using discord_slash


Maintainers
1

Readme

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

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc