disnake-pagination-1.1
توضیحات
A simple Embed Paginator for your projects made with disnake.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | disnake-pagination-1.1 |
| نام | disnake-pagination |
| نسخه کتابخانه | 1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Aarno Dorian |
| ایمیل نویسنده | aarnodorian56@gmail.com |
| آدرس صفحه اصلی | https://github.com/DorianAarno/Paginator |
| آدرس اینترنتی | https://pypi.org/project/disnake-pagination/ |
| مجوز | MIT |
# Disnake Paginator
A simple Embed Paginator developed for projects made with [disnake](ttps://github.com/DisnakeDev/disnake), a fork of [discord.py](https://github.com/Rapptz/discord.py).
# Installation
You can use [pip](https://pip.pypa.io/en/stable/) to install this library.
```
pip install disnake-pagination
```
# Usage
### Guide
```py
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](https://github.com/DorianAarno/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](https://github.com/DorianAarno/Paginator/blob/main/LICENSE) License.
نیازمندی
| مقدار | نام |
|---|---|
| - | disnake |
نحوه نصب
نصب پکیج whl disnake-pagination-1.1:
pip install disnake-pagination-1.1.whl
نصب پکیج tar.gz disnake-pagination-1.1:
pip install disnake-pagination-1.1.tar.gz