discord.py-paginator-1.5.0


توضیحات

A button & interactions pagination template for discord bots coded in discord.py
ویژگی مقدار
سیستم عامل OS Independent
نام فایل discord.py-paginator-1.5.0
نام discord.py-paginator
نسخه کتابخانه 1.5.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Marseel Eeso
ایمیل نویسنده marseeleeso@gmail.com
آدرس صفحه اصلی https://github.com/Marseel-E/discord.py-paginator
آدرس اینترنتی https://pypi.org/project/discord.py-paginator/
مجوز -
[![Discord server](https://discord.com/api/guilds/843994109366501376/embed.png)](https://discord.gg/DFDUpXJNdc) [![Discord.py](https://img.shields.io/badge/Discord.py-2.0-blue)](https://github.com/Rapptz/discord.py) [![Supported Python versions](https://img.shields.io/pypi/pyversions/discord.py.svg)](https://pypi.python.org/pypi/discord.py) # discord.py-paginator Buttons pagination template for discord bots. # Useage Install via [pip](https://pypi.org/project/discord.py-paginator/). ```cmd py -m pip install -U discord.py-paginator :: for latest/unstable py -m pip install -U git+https://github.com/Marseel-E/discord.py-paginator ``` ### or Download [this](src/paginator) folder and place it in your project directory. (or clone it with the following command) ```cmd git clone https://github.com/Marseel-E/discord.py-paginator ``` # Example ```py import discord from paginator import Paginator @discord.app_commands.command() async def command_name(interaction: discord.Interaction): pages = [] page_content = "" for i in range(15): if (i > 0) and (i % 5 == 0): pages.append(page_content) page_content = "" page_content += f"{i+1}. Item `{i}`\n" if (page_content != "") and not (page_content in pages): pages.append(page_content) await Paginator(interaction, pages).start() ``` # Preview ![layout-preview](images/layout.jpg) ![quick-navigation-preview](images/quick-navigation.jpg) ![custom-children-preview](images/custom_children.jpg) ### :scroll: [LICENSE](LICENSE)


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl discord.py-paginator-1.5.0:

    pip install discord.py-paginator-1.5.0.whl


نصب پکیج tar.gz discord.py-paginator-1.5.0:

    pip install discord.py-paginator-1.5.0.tar.gz