Implement paginator , selection
so I want to have like a menu where you can pick several buttons and each button will show several options but each option should also have a paginato, what's the best class for this?
Solution:Jump to solution
I do something similar in my bot, I could not find a prebuilt class that handles that. Paginated Message would work but it’s not designed for that kind of functionality specifically so you’d have to override it.
I use interaction handlers to do it in mine and it works really well.
https://sapphirejs.dev/docs/Guide/interaction-handlers/what-are-they...
Sapphire Framework
What are they? | Sapphire
These are interaction handlers! A simple class you can extend to handle almost all the interactions you may receive in
3 Replies
so I have
button 1 - swap to selection menu 1
button 2 - swap to selection menu 2
button 3 - swap to selection menu 3
backward - goes back in selection menu pages which is currently selected
forward - goes forward
Solution
I do something similar in my bot, I could not find a prebuilt class that handles that. Paginated Message would work but it’s not designed for that kind of functionality specifically so you’d have to override it.
I use interaction handlers to do it in mine and it works really well.
https://sapphirejs.dev/docs/Guide/interaction-handlers/what-are-they
Sapphire Framework
What are they? | Sapphire
These are interaction handlers! A simple class you can extend to handle almost all the interactions you may receive in
I will check it out thank you
Cause each reply will be different data so I would like to keep it in a class but I will see how I can utilize this