Paginated Embed error
heres my main function of
mods
commandSolution:Jump to solution
Items need to be valid embed fields because you're using PaginatedFIELDMessageEmbed and fields need a description, title and whether it's inline or not, no other fields. You cannot just insert a random object and expect it to me magically mapped. The error tells you the title is missing and yes it clearly is missing.
You should either make a 2 dimensional array of titles and descriptions to ensure every page has an array of proper structure OR use PaginatedMessageEmbed root class and build your own pages with addPageEmbed...
6 Replies
What does getMods return
an array of mods
Solution
Items need to be valid embed fields because you're using PaginatedFIELDMessageEmbed and fields need a description, title and whether it's inline or not, no other fields. You cannot just insert a random object and expect it to me magically mapped. The error tells you the title is missing and yes it clearly is missing.
You should either make a 2 dimensional array of titles and descriptions to ensure every page has an array of proper structure OR use PaginatedMessageEmbed root class and build your own pages with addPageEmbed
ah okayy
this is a testing debug code
to test if its works correctly
mb
No offense but kinda useless. If the class didn't work properly you'd be finding many bug reports here and on GitHub. It's pretty safe to just assume that it does.