Pagination for your discord.py bot using the discord_components library
Paginator – discord_components
This repository is just an example code for how to carry out pagination using the discord_components library for python. Its fairly easy, and once you get the hang of it you can modify it as per your choice 😀 The code contains an in-built timeout feature, where after 10 seconds of inactivity, the buttons are disabled automatically!
Pre Requisites
- Basic knowledge of Python
- Python 3.7+ installed on your computer
- Discord Account
Libraries
Simply install these by running pip install
in your terminal
- discord.py
- asyncio
- discord_components
Usage
- Download the pagination.py file
- Replace
with your bot’s token - Edit the embeds as necessary / add more
- Edit button styles if necessary
- Run it!
More To