Skip to content

Instantly share code, notes, and snippets.

View Baysul's full-sized avatar

Basil Baysul

  • California, USA
  • 08:03 (UTC -08:00)
View GitHub Profile
@jpanahon
jpanahon / paginator.py
Last active May 8, 2021 17:20
Lazy reaction paginator (can work without manage messages permissions and works for both embed and text) for the rewrite branch of discord.py
# I know it looks like R.Danny's paginator, I looked at it for reference to try to figure out how to do the paginating and wrote it
# in my own way. So don't accuse me of stealing code and modifying it to my own liking. In some ways or another, this paginator is simply
# a more efficient version of the paginator found in ?tag help command (assuming you came here from discord.py).
class Paginator:
def __init__(self, ctx, entries: list, embed=True):
self.bot = ctx.bot
self.ctx = ctx
self.entries = entries
self.embed = embed