معرفی شرکت ها


disnake-paginator-1.0.8


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

This is a module that contains paginators for disnake
ویژگی مقدار
سیستم عامل -
نام فایل disnake-paginator-1.0.8
نام disnake-paginator
نسخه کتابخانه 1.0.8
نگهدارنده []
ایمیل نگهدارنده []
نویسنده ErrorNoInternet
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/ErrorNoInternet/disnake-paginator
آدرس اینترنتی https://pypi.org/project/disnake-paginator/
مجوز MIT
# disnake-paginator A module containing paginators for disnake ## Installation ``` pip install disnake-paginator ``` ## Examples Interaction example ```py async def ping_command(inter): paginator = disnake_paginator.ButtonPaginator(title="Pong", segments=["Hello", "World"], color=0x00ff00) await paginator.start(inter) ``` `on_message` example ```py async def on_message(message): if message.content == "!ping": paginator = disnake_paginator.ButtonPaginator(title="Pong", segments=["This is", "a message"], button_style=disnake.ButtonStyle.red) await paginator.start(disnake_paginator.wrappers.MessageInteractionWrapper(message)) #sends a message in the channel await paginator.start(disnake_paginator.wrappers.UserInteractionWrapper(message.author)) #sends a DM to the author ``` `split` function ```py async def aaa_command(inter): paginator = disnake_paginator.ButtonPaginator(title="aaa", segments=disnake_paginator.split("a"*6969, 1000), target_page=4) await paginator.start(inter) ``` ## Arguments `title` = The title of the embed\ `segments` = The contents (pages) of the paginator (supports `str` and `disnake.Embed`)\ `color` = The color of all the embeds\ `prefix` = The prefix of every page in the embed\ `suffix` = The suffix of every page in the embed\ `target_page` = The page that the paginator will display when sent\ `timeout` = The amount of seconds before the paginator stops working\ `button_style` = The style of the buttons on the paginator (red, gray, green, etc)\ `invalid_user_text` = The function that will be called when another user tries to use the paginator `(x)_button_emoji` = The emoji displayed on the (x) button (for example `first_button_emoji`) `(x)_button_label` = The label (text) displayed on the (x) button (for example `next_button_label`) <sub>If you would like to modify this repository (including its code) in your own project, please be sure to credit!</sub>


نیازمندی

مقدار نام
- disnake


نحوه نصب


نصب پکیج whl disnake-paginator-1.0.8:

    pip install disnake-paginator-1.0.8.whl


نصب پکیج tar.gz disnake-paginator-1.0.8:

    pip install disnake-paginator-1.0.8.tar.gz