Skip to main content

Button paginator for discord-components library.

Project description

discord-components Button Paginator

Example

from discord_components_paginator import Paginator, PaginatorStyle



...



@bot.command()

async def paginator_command(ctx):

  embeds = [

    discord.Embed(title=f"Page {page}") for page in range(1, 6)

  ]

  paginator = Paginator(bot, ctx, PaginatorStyle.FIVE_BUTTONS_WITH_COUNT, embeds)

  await paginator.start()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord_components_paginator-1.0.1.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page