Skip to main content

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.

Metadata

Release files for disnake-pagination 2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for disnake-pagination 2.1
File Size Uploaded
disnake-pagination-2.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for disnake-pagination 2.1
File Interpreter ABI Platform
disnake_pagination-2.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / disnake-pagination-2.1.tar.gz

Download URL disnake-pagination-2.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b86dab2c81ea92d187cf6d209faef6785d810d0b75bdca87c9164d956ea1ed3c
BLAKE2b-256 checksum
How to use checksums
5b91236c7e499f806c4b7651b35a2cb6715acfe661676a08c7928831eac60897
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / disnake_pagination-2.1-py3-none-any.whl

Download URL disnake_pagination-2.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f1e413a2d1cb418d0da1b9573f00a64422eca126692c9d86eaab88cd69fc09c
BLAKE2b-256 checksum
How to use checksums
c00f833bdad0599d697bb1142f848d00b98c6f3b6e12b06c000a99bfe68a2345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

2.1 This release

2 release files

1.1

1 release file

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page