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-paginate

Usage

Guide

from Paginate 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(ctx, embeds, author_id, timeout))

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-1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: disnake-pagination-1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.2 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for disnake-pagination-1.0.tar.gz
Algorithm Hash digest
SHA256 aa21dd4f738c9048f1a98db20e5642df55ddc15b74999f4756898ce25559ecb8
MD5 15d69c4f289679abd43312d645b50808
BLAKE2b-256 2dfccb7958ae579a7470da372c6ec35ba749883a4d2287587e9dd2c979adac88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for disnake_pagination-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79e911b73daf9c9020509b13a7eb112c6abf9238733b35233edf210622efd414
MD5 667e3d8edc53bde73bbf2a3d863b2928
BLAKE2b-256 c422e9a0d579d90f806d8e58d9a87e34c52cdd8a6f9baf1482c564dc6ba833f5

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