A button & interactions pagination template for discord bots coded in discord.py
Project description
discord.py-paginator
Buttons pagination template for discord bots.
Useage
Download this folder and place it in your project directory. (or clone it with the following command)
git clone https://github.com/Marseel-E/discord.py-paginator
Example
import discord
from paginator import Paginator
@discord.app_commands.command()
async def command_name(interaction: discord.Interaction):
data = {...}
pages = []
page_content = ""
for i, (key, value) in enumerate(data.items()):
if (i > 0) and (i + 1 % 5 == 0):
pages.append(page_content)
page_content += f"{i+1}. {key.capitalize()} `{value}`\n")
await Paginator(interaction, pages).start()
Preview
:scroll: LICENSE
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
Built Distribution
Close
Hashes for discord.py-paginator-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2129e772327ddf6241b370f94b11f48bfc4db1d5f0cf9467c275d263f6633f6 |
|
MD5 | 67b3300af72900b3f8a7234e802962f2 |
|
BLAKE2b-256 | 85d421f8ff905638daaf6822f222399c4671f3cc6f062bdd851a7151f0ead76d |
Close
Hashes for discord.py_paginator-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3a33588ba477362390b1524b9ea385d847dc40449548a01bb8a72c6f36ee22 |
|
MD5 | 452db32a7bfa4f13888ef8d3f430c0de |
|
BLAKE2b-256 | 228baba12e66ca9a1eedbeb984ab26ba61da7cc974516c1b2a4960deac38598f |