Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty Message #27

Open
sebb0y opened this issue Jun 12, 2021 · 2 comments
Open

Empty Message #27

sebb0y opened this issue Jun 12, 2021 · 2 comments

Comments

@sebb0y
Copy link

sebb0y commented Jun 12, 2021

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?

@avixityyt
Copy link

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

@psibean
Copy link

psibean commented Jun 14, 2021

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.

@mavdotj mavdotj mentioned this issue Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants