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

DiscordAPIError: Cannot send an empty message #5875

Closed
Korsinemi opened this issue Jun 18, 2021 · 1 comment
Closed

DiscordAPIError: Cannot send an empty message #5875

Korsinemi opened this issue Jun 18, 2021 · 1 comment

Comments

@Korsinemi
Copy link

Hello, today I had a problem, and it is that I am using the discord.js-menu library, but the problem arose in that it had never happened to me before using this library, what happens is that this library creates a menu using reactions , and well it always worked for me until today when I went to test it and the message was not updated because it threw me this error:

(node:2122) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
    at RequestHandler.execute (/home/runner/KitsunityApp/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async RequestHandler.push (/home/runner/KitsunityApp/node_modules/discord.js/src/rest/RequestHandler.js:39:14)
(node:2122) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 0)

I already checked and the problem is not the library since it has always worked for me and the code never be mdified before this error appears, so I think it is a problem of the discord.js, the point is that I need help since the library that I use does not work well because of this error.

Further details:

  • discord.js version: Lastest
  • Node.js version: 12.16.1
  • Operating system: Linux (on repl.it workspace)
  • Priority this issue should have - please be realistic and elaborate if possible: Very high, the library I use depends on that function
@SpaceEEC
Copy link
Member

This is probably caused by #5758 and needs to be addressed by discord.js-menu, which is not maintained by us.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants