Skip to main content

A simple Embed Paginator for your projects made with disnake.

Project description

Disnake Paginator

A simple Embed Paginator developed for projects made with disnake, a fork of discord.py.

Installation

You can use pip to install this library.

pip install disnake-pagination

Usage

Guide

from Paginator import CreatePaginator
from disnake import Embed

embeds = [
  Embed(description="First Embed"),
  Embed(description="Second Embed"),
  Embed(description="Third Embed"),
  Embed(description="Fourth Embed")
]
timeout = 120.0 # Optional
author_id = ctx.author.id # Optional, If not specified, anyone can interact with pagination buttons.

await ctx.send(embed=embeds[0], view=CreatePaginator(embeds, author_id, timeout))

Example

You may view implementation of this library in PointsBot.

Contributing

  • Pull requests and issues are welcome.
  • Consider giving this repository a ⭐, It is highly appreciated!

License

This repository has been made available via MIT License.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

disnake_pagination-1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file disnake_pagination-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for disnake_pagination-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e87e2ad7176c65971050d12d1a8e0cdc2c93ba7d7f535ea9014eb682662a1275
MD5 97809f5abd62113e28ddda66ca73887e
BLAKE2b-256 3683fd024f9ff2a3b209c4704acbd71199df1b88cba12fd9cf82826eeb3a7e29

See more details on using hashes here.

Supported by

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