-
Notifications
You must be signed in to change notification settings - Fork 9
feat: interaction paginator #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## main #50 +/- ##
==========================================
- Coverage 39.42% 38.62% -0.81%
==========================================
Files 13 16 +3
Lines 596 769 +173
Branches 70 105 +35
==========================================
+ Hits 235 297 +62
- Misses 354 459 +105
- Partials 7 13 +6
Continue to review full report at Codecov.
|
previous pagination system with dislash had so many bugs, many of them caused by dislash itself. I've adapted the pagination system from khk4912/EZPaginator and converted it to using button interactions. Nearly all that is left to do is make the paginator pretty with embeds.
dc9801e to
787e52b
Compare
use a dict instead of two lists to store pagination states set up color changing depending on enabled vs disabled remove a bunch of duplicated code switch to characters instead of emojis for pagination labels
after internal deliberation, we've updated the pagination icons to be a bit more explantative of what each one does.
|
While this doesn't subclass the discord.py Paginator, I've been contemplating later implementing the Paginator If someone wants to implement the discord.py Paginator as a mixin to this paginator, I'll happily add it. |
|
Went for it, just integrated the discordpy Paginator into the Button Paginator. Still needs some features added (specifically embeds) and maybe touched up a bit, but other than that, looks pretty good. |
0cfe90c to
117ca07
Compare
|
@bast0006 Part 2? |
Relevant Issues
Closes #49
Description