Paginination limitation when not using select menus
I have the following error being presented to me
(node:1484241) [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.and this is my current code giving the error:
movieResponse
is an array of objects that can exceed 25 objects. how do I get around this error as you can see, I don't have any menus in place in my embed code.Solution:Jump to solution
Extend the class and override the addPage method.
Never forget the basic principles of object oriented programming. You can achieve a lot with simple class extension....
14 Replies
Solution
Extend the class and override the addPage method.
Never forget the basic principles of object oriented programming. You can achieve a lot with simple class extension.
there are some things in OOP i have not done before and this extending a class to override something
You have because that’s literally what writing commands is
i have had examples to work off of
https://learntypescript.dev/05/l4-extending
https://www.typescriptlang.org/docs/handbook/2/classes.html
https://chat.openai.com
Learn TypeScript
Extending classes | Learn TypeScript
How a class can extend another class and add additional functionality
Documentation - Classes
How classes work in TypeScript
ChatGPT
A conversational AI system that listens, learns, and challenges
chatgpt what will that do? i've not used it before
Welcome to 2023 where you can ask AI questions and get answers that are relatively good
Or use bing.com chat to have free GPT 4.0 Turbo
something is missing and i don't know what
No idea what MessageEmbedLike it but the builder is called EmbedBuilder. ChatGPT GPT3.5-turbo’s data is from 2020 which is why I mentioned bing chat.
ai from bing did that
is there a maxPages property?
also, looking at the responses received back, isn't
MessageEmbed
from discord.js now EmbedBuilder
?Favna just said that
Also, you can check the arguments from the original
addPageEmbed
to see the types.i'm trying to override the
addPage()
method and VSCode presents this error to me and I don't know what it means. this is my code
If you carefully read the error it says that the type mismatches and the expected return type is
this