Open justanothernoob4648 opened 3 years ago
Can you provide reproduction steps? Or logs.
and send ur code
While you say that you haven't changed anything, has the data that you're paginating changed? Assuming you're using MenuPages, reactions will not be added in certain situations, i.e if there is only one page - based on the description provided, it sounds like that's what's going on here, and it is intended behaviour.
As a note, this issue seems very ambiguous, and potentially like it is not an issue with ext.menus - it will be easier for issues like this to be resolved in the future if you provide more details. For general help with the library and ext.menus, consider joining discord.py's discord server here.
How many pages are in your source? I noticed in my testing that the function of the skip_if
kwarg in the button
decorator tells the Menu
when to not apply a button. The default buttons on MenuPages
are set to skip First and Last buttons if there are only two pages.
If I only had two pages, my only buttons were Previous, Next, and Stop. If I had more than two, all five buttons were added. If there was only one page, it still sent the message, but it was not treated as a menu, no controls are added (e.g. timeout), and no buttons were applied.
How many pages are in your source? I noticed in my testing that the function of the
skip_if
kwarg in thebutton
decorator tells theMenu
when to not apply a button. The default buttons onMenuPages
are set to skip First and Last buttons if there are only two pages.If I only had two pages, my only buttons were Previous, Next, and Stop. If I had more than two, all five buttons were added. If there was only one page, it still sent the message, but it was not treated as a menu, no controls are added (e.g. timeout), and no buttons were applied.
Your right that is what happened, thanks!
Originally, I had all 5 of the default buttons working. Now, only 3 of the work. The buttons that show the first and last page of the menu have started showing up. They aren't being added as a reaction. I haven't changed anything.