discord.js-pagination icon indicating copy to clipboard operation
discord.js-pagination copied to clipboard

Empty Message

Open sebb0y opened this issue 3 years ago • 2 comments

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?

sebb0y avatar Jun 12 '21 08:06 sebb0y

image yeah same , code is simple as possible and checked many times , same issue.

avixityyt avatar Jun 12 '21 08:06 avixityyt

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.

psibean avatar Jun 14 '21 08:06 psibean