Skip to content
Sign upLog in
Profile icon

Pomardinho

@Pomardinho
Repls
Community
Pomardinho
Pomardinho
shared a Post
2 years ago
Does anyone knows why is my bot giving me this type of error sometimes?
(node:4281) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message at RequestHandler.execute (/home/janpose/Documents/myb
19wintersp
19wintersp
Just look at the first part of the error: > DiscordAPIError: Cannot send an empty message Before you send each message, check that it is not empty before sending it, or add a catch clause to the Promise. Most of the rest of the error is just talking about a rejected promise: your code broke inside of an asynchronous function.2 years ago