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.1.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.1.tar.gz.
File metadata
- Download URL: pycordviews-1.0.1.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 |
138725f8209a9c3bd8bcbc3f3797c3de53f9238153d7356b03ba667705d1926e
|
|
| MD5 |
399bdae8cbecbfe329fdbce1b4474b52
|
|
| BLAKE2b-256 |
233d3880455dec4e260085c367782210966d9eeacc0f1bc0aef51f27e777ee98
|
File details
Details for the file PycordViews-1.0.1-py3-none-any.whl.
File metadata
- Download URL: PycordViews-1.0.1-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 |
9a65ca67623f4be4b6476013d449b63915205652f9db9e665c8d8d2eb4a91540
|
|
| MD5 |
6f4e60b75bf3932916acd7ca2c656aa3
|
|
| BLAKE2b-256 |
fe6cb6d9c3a477f1e3b97e11e86bcb96226135c097707a09dd169a5135bdd47d
|