Paginated Message actions issue
I’m working with a PaginatedMessage in my command, where I display entities and use a dropdown (select menu) for users to choose an entity from the current page to view its details. However, if there are fewer than 10 entities, the dropdown doesn’t respond when selecting an entity, as if the command isn’t recognized as a PaginatedMessage. I suspect this may be because only one page is created, so the actions aren’t registered. I saw the setPageActions() method in the docs, could it help here?
I've included screenshots: one with fewer than 10 entities (not considered as a Paginated message) and one with more (Paginated message).
Thank you for your help !
listEntities method if needed :
1 Reply
What you'll want to do in this case is build the embed and the custom actions beforehand, then determine if that should be a paginated message, and then send either a paginated message or the structures you have already build. This way you avoid the problem of paginated message not working properly with 1 page entirely.