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.0.tar.gz
(2.9 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.0.tar.gz.
File metadata
- Download URL: pycordviews-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9015ee745172aced0070df929eea333ebf96ead595eb43d4ec2ce8361a64e98c
|
|
| MD5 |
a5bf038aa027dfc06e8617ab983235f1
|
|
| BLAKE2b-256 |
ba896dbaa96b87686a9f38e294e13de609239ab3ceb5843fc3a0d3118ea3c417
|
File details
Details for the file PycordViews-1.0.0-py3-none-any.whl.
File metadata
- Download URL: PycordViews-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 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 |
8d3260362ac319a293f2443b83a82624ff5e530eebd364d6971ce47b75439679
|
|
| MD5 |
59fc3cd07eed877f31c432d7f4de1440
|
|
| BLAKE2b-256 |
e9425cbef901b3d73c05e24ed7428e836b44e96a89ea476fef6ad0892a9c1b9d
|