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!

git

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

  1. Download the pagination.py file
  2. Replace with your bot’s token
  3. Edit the embeds as necessary / add more
  4. Edit button styles if necessary
  5. Run it!

More To

 

 

 

To finish reading, please visit source site