#Add buttons to Paginator.
1 messages · Page 1 of 1 (latest)
Hey! Once your issue is solved, press the button below to close this thread!
Subclass the paginator and override it's component method
Any tips on that?
and thx for the hand 🙂
If i may ask (if im not being annoying), whats a paginator in programming? Google isnt being very helpful xD
This is the list of currently existing tags.
1 Installing Unstable
2 403 Authentication error
3 Documentation website
4 Global vs. Guild
5 Positional arguments from command function
6 Formatting timestamp
7 Sending Python code in Discord
8 Upload images directly into embeds
9 Install git
^this is a paginator
A list?
no, it's a feature used when you want to show a list of certain things but it's too large. Therefore you divide it into multiple embeds and you can navigate through them using menu/buttons
Does the "This paginator does not belongs to you" is a Discord native thing or it's a I.py thing?
i.py. Anyone can press buttons, but for paginators it has been decided to do it "private" (i.e only the author can switch through pages)
idk if i.py supports removing this, maybe it is
That's actually a cool feat tho
I'm still stuck on this. I don't know where to start tbh
The buttons should already come with the Paginator, what exact functions would like to add to the Paginator?
Well, i'd like to use paginators as a "shop" where people could paginate and then click "Buy" on the wanted item on the page
As i said, managed to create the pagination
but i'm stuck on the button part :x
as Polls said, for that you will want to subclass the paginator class. We'll let you lookup what does that mean in Python, but basically you will need to rewrite some functionality of the paginator for that
the rewrite part isn't the big problem, my bigges question would be to have access to that Class properly in order to rewrite it
class CustomPaginator(i.Paginator):
...```
this is subclassing
