jowsey / discord.js-menu

💬 Create Discord.js embed-menus, with customizable reactions and unlimited pages.
https://npm.im/discord.js-menu
MIT License
120 stars 19 forks source link

Menu fails #23

Closed Korsinemi closed 3 years ago

Korsinemi commented 3 years ago

Hello, today I had a problem, and it is that I am using the library, but the problem arose in that it had never happened to me before using this library 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.

have a good day, and I wait a solution for this

Korsinemi commented 3 years ago

The reactions be updated to the next but the menssaje stays in the first

AKASGaming commented 3 years ago

Fixed in my Pull Request