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.

pagination

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 Distribution

disnake-pagination-2.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

disnake_pagination-2.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file disnake-pagination-2.1.tar.gz.

File metadata

  • Download URL: disnake-pagination-2.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for disnake-pagination-2.1.tar.gz
Algorithm Hash digest
SHA256 b86dab2c81ea92d187cf6d209faef6785d810d0b75bdca87c9164d956ea1ed3c
MD5 43b5377197e0c88e4c5fed2631b47b9b
BLAKE2b-256 5b91236c7e499f806c4b7651b35a2cb6715acfe661676a08c7928831eac60897

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for disnake_pagination-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f1e413a2d1cb418d0da1b9573f00a64422eca126692c9d86eaab88cd69fc09c
MD5 de34a5060763e423270f34a4f046c3ed
BLAKE2b-256 c00f833bdad0599d697bb1142f848d00b98c6f3b6e12b06c000a99bfe68a2345

See more details on using hashes here.

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