discord.js-pagination
discord.js-pagination copied to clipboard
Empty Message
When I try to use pagination in my help command, the first page loads fine but when I try and click the emoji to change to the second page I get the "(node:19744) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message" Error any help?
yeah same , code is simple as possible and checked many times , same issue.
When I try to use pagination in my help command, the first page loads fine but when I try and click the emoji to change to the second page I get the "(node:19744) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message" Error any help?
Plenty of people, including myself, are using this without this problem.
You could try my updated version of the package but I do not think this will help.
The error you're getting indicates that one of the embeds in your pages array that you're passing in is blank/empty, so when you switch page it tries to edit the message to be that embed, but the embed is blank / can't be sent.
Can't help you with this error unless you show the code where you're creating your array of embeds that get passed into the paginationEmbed call.