Views for py-cord library
Project description
Py-cord_Views
Views for py-cord library
from pycordViews.pagination import Pagination
import discord
intents = discord.Intents.all()
bot = discord.AutoShardedBot(intents=intents)
@bot.command(name="My command paginator", description="...")
async def pagination_command(ctx):
"""
Create a command pagination
"""
pages: Pagination = Pagination(timeout=None, disabled_on_timeout=False)
pages.add_page(content="It's my first page !!", embed=None)# reset embed else he show the embed of the page after
embed = discord.Embed(title="My embed title", description="..........")
pages.add_page(content=None, embed=embed) # reset content else he show the content of the page before
pages.add_page(content="My last page !", embed=None)# reset embed else he show the embed of the page before
await pages.respond(ctx=ctx) # respond to the command
await pages.send(send_to=ctx.author) # send the message to the command author
bot.run("Your token")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycordviews-1.0.2.tar.gz
(6.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycordviews-1.0.2.tar.gz.
File metadata
- Download URL: pycordviews-1.0.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94cd143ac72ef047f36e0c39760b0e78977397d39d3d74d39f1cf0c770d36a4a
|
|
| MD5 |
d184f7db23c47623534846fa99228e2d
|
|
| BLAKE2b-256 |
4f0f84c0c89aaac18cd0dae99e4395ac74d22b97a88ef864ea1c09dfd958eaa0
|
File details
Details for the file PycordViews-1.0.2-py3-none-any.whl.
File metadata
- Download URL: PycordViews-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bee98f666bf587fd47ccc6d10dbc9f0fee2feea61f307aae13a5d041316271d1
|
|
| MD5 |
9d4b7d6306b9c66b671cbf2dace66650
|
|
| BLAKE2b-256 |
ba268d67b8ea3fd3c5898be26ca184638a401f0d35b94a010020b3024df52344
|