Chef
SIASapphire - Imagine a framework
•Created by Chef on 10/5/2024 in #sapphire-support
PaginatedMessage actions on a single page
Hi!, I'm currently using the super convenient PaginatedMessage class and calling the .addPageActions() method to add actions with a run() callback to each page.
This has been working great, I have however noticed that the run() function is only being called when the total number of pages is more than 1.
I checked out the code setting up the collector for the message, and that indeed seems to be the case. I was wondering if there was a way to ensure that custom actions are called in the specific case where the number of pages is exactly 1 while still being able to access the passed context.
Thanks :)
5 replies