Paginated message exceeding 25 pages

(node:1) [PAGINATED_MESSAGE_EXCEEDED_MAXIMUM_AMOUNT_OF_PAGES] PaginatedMessageExceededMessagePageAmount: Maximum amount of pages exceeded for PaginatedMessage. Please check your instance of PaginatedMessage and ensure that you do not exceed 25 pages total.
If you do need more than 25 pages you can extend the class and overwrite the actions in the constructor.
(node:1) [PAGINATED_MESSAGE_EXCEEDED_MAXIMUM_AMOUNT_OF_PAGES] PaginatedMessageExceededMessagePageAmount: Maximum amount of pages exceeded for PaginatedMessage. Please check your instance of PaginatedMessage and ensure that you do not exceed 25 pages total.
If you do need more than 25 pages you can extend the class and overwrite the actions in the constructor.
Why can't paginated messages go more than 25 pages, and how do I do what the last line is telling me to do?
Solution:
Nevermind, figured it out. Paginated messages can't go more than 25 pages due to the select menu for the pages (which is limited to 25 choices)
Jump to solution
3 Replies
Solution
tk ⚝
tk ⚝2y ago
Nevermind, figured it out. Paginated messages can't go more than 25 pages due to the select menu for the pages (which is limited to 25 choices)
MRDGH2821
MRDGH28212y ago
On a side note i'm actually curious about it What if modal submission was provided instead of select menu? 🤔 or remove the select menu 🤔
Caspian Nightworth
I know this is an old post and am curious to the If you do need more than 25 pages you can extend the class and overwrite the actions in the constructor. I am writing a bot that is to display results from an API and there can be more than 25 results for a user and need for the user to be able to go through those results. The results are in array of JSON objects such as
[
{
"plays": 1,
"last_watched_at": "2023-11-25T01:49:28.000Z",
"last_updated_at": "2023-11-25T01:49:28.000Z",
"movie": {
"title": "Toy Story",
"year": 1995,
"ids": {
"trakt": 1159,
"slug": "toy-story-1995",
"imdb": "tt0114709",
"tmdb": 862
}
}
},
{
"plays": 1,
"last_watched_at": "2023-11-25T01:47:47.000Z",
"last_updated_at": "2023-11-25T01:47:47.000Z",
"movie": {
"title": "The Lord of the Rings: The Two Towers",
"year": 2002,
"ids": {
"trakt": 373,
"slug": "the-lord-of-the-rings-the-two-towers-2002",
"imdb": "tt0167261",
"tmdb": 121
}
}
},
{
"plays": 1,
"last_watched_at": "2023-11-25T01:48:16.000Z",
"last_updated_at": "2023-11-25T01:48:16.000Z",
"movie": {
"title": "Die Hard",
"year": 1988,
"ids": {
"trakt": 383,
"slug": "die-hard-1988",
"imdb": "tt0095016",
"tmdb": 562
}
}
}
]
[
{
"plays": 1,
"last_watched_at": "2023-11-25T01:49:28.000Z",
"last_updated_at": "2023-11-25T01:49:28.000Z",
"movie": {
"title": "Toy Story",
"year": 1995,
"ids": {
"trakt": 1159,
"slug": "toy-story-1995",
"imdb": "tt0114709",
"tmdb": 862
}
}
},
{
"plays": 1,
"last_watched_at": "2023-11-25T01:47:47.000Z",
"last_updated_at": "2023-11-25T01:47:47.000Z",
"movie": {
"title": "The Lord of the Rings: The Two Towers",
"year": 2002,
"ids": {
"trakt": 373,
"slug": "the-lord-of-the-rings-the-two-towers-2002",
"imdb": "tt0167261",
"tmdb": 121
}
}
},
{
"plays": 1,
"last_watched_at": "2023-11-25T01:48:16.000Z",
"last_updated_at": "2023-11-25T01:48:16.000Z",
"movie": {
"title": "Die Hard",
"year": 1988,
"ids": {
"trakt": 383,
"slug": "die-hard-1988",
"imdb": "tt0095016",
"tmdb": 562
}
}
}
]
if feasable, i could do like 5 of those per page (something I would need to figure out), but it could still end up past 25 pages depending on how many movies/shows the user has in their watch history
Want results from more Discord servers?
Add your server