Closed ghost closed 3 years ago
Because of the current restrictions (only being able to be used within slash commands), I'll fix this to add support for normal commands. Essentially it'll be the same navigator, but with an option to use buttons instead of reactions (will most likely be an optional bool kwarg passed to the Navigator constructor)
@neonjonn Hey, commenting here is legit the only way I've found I can contact you. I just wanted to say I'm building a Discord bot for the very first time and used your guide https://neonjonn.readthedocs.io/en/latest/hikari-get-started/lightbulb.html.
I noticed at the bottom you mentioned the next update to the guide will be 'cooldowns for commands' and 'error handling'. I am super keen to learn about doing these with hikari & lightbulb, so if you felt like updating the guide with those things all I can say is please do as what you have wrote thus far is super useful and intuitive, and is helping loads of people (just like me!) :)
Summary
Adding a new navigator for use in slash commands utilising buttons. This is a new class called SlashNavigation, and works with pages from both StringPaginator and EmbedPaginator
Problem
Solves the fact that StringNavigation and EmbedNavigation can't be used within slash commands
Ideal implementation
Implemented on my fork here: https://github.com/neonjonn/hikari-lightbulb
Checklist