pycord
pycord copied to clipboard
feat(ext.pages): Add `use_styled_buttons`
Summary
Adds use_styled_buttons
in ext.pages.Paginator
which essentially styles buttons with emojis by using a single parameter. Overwrites use_default_buttons
when used in the Paginator __init__
.
Information
- [ ] This PR fixes an issue.
- [x] This PR adds something new (e.g. new method or parameters).
- [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed).
- [ ] This PR is not a code change (e.g. documentation, README, typehinting, examples, ...).
Checklist
- [x] I have searched the open pull requests for duplicates.
- [x] If code changes were made then they have been tested.
- [x] I have updated the documentation to reflect the changes.
- [x] If
type: ignore
comments were used, a comment is also left explaining why.
Example code:
from discord.ext.pages import Paginator
pages = ['1', '2', '3']
paginator = Paginator(pages=pages, use_styled_buttons=True)
await paginator.respond(ctx)
Output:
I like how the ci fails again
I like how the ci fails again
@Lulalaby it doesn’t like me :/
No worries. Is fixed. Please address the requested changes.
Added changes 👍
I don't even question anymore how you've managed to let the ci fail two more times just by applying the string changes
I don't even question anymore how you've managed to let the ci fail two more times just by applying the string changes
CI sometimes fails when a new build is triggered while the previous isn't finished
In addition to the other comments, please add a changelog entry for both the new params and new method.
Done.
Should I add #1818 into this pr for v2.4?
Should I add #1818 into this pr for v2.4?
Personally I would prefer this
Please add a changelog entry
@Nzii3 trash?
@Nzii3 trash?
@Lulalaby yes