Skip to content

Commit

Permalink
Update pages.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Aluerie committed Feb 15, 2025
1 parent acd406d commit 5f8ad0c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions utils/pages.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"""Pagination Menus View Classes.
These classes do not use `discord.ext.menus` and instead mirror some of their methods
under `Paginator` class' namespace instead. The principle is the same though:
We need to subclass `Paginator` and implement `format_page` that
uses slice of entries passed to the class and should return kwargs to be send
with `.send` methods, i.e. Embed or dict.
Unlike popular implementations for paginators, these classes do not use `discord.ext.menus`
and instead mirror some of their methods under `Paginator` class' namespace.
The principle is the same though: We need to subclass `Paginator` and implement `format_page` that
uses slice of `self.entries` returns kwargs to be send with `.send` methods, i.e. Embed or dict.
Sources
-------
Expand Down

0 comments on commit 5f8ad0c

Please sign in to comment.