Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 1

UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message

Hi all,

 

I have a node js script copies messages from one of my discord servers and fwd it to another of my servers. Every often i keep getting following error. Could someone pls advise what could i look into to fix this.

 

(node:1070) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
    at item.request.gen.end (/root/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:85:15)
    at then (/root/node_modules/snekfetch/src/index.js:215:21)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:1070) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async functi
on without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7)
/root/main/.js:154main.js
        channel.send(" ", {