Closed adamhl8 closed 2 years ago
Describe the bug I might be missing something/doing something dumb, but it seems like sendMessage() resolves its promise before actually sending the message.
sendMessage()
To Reproduce
// login stuff await api.listen(); await api.sendMessage({ body: 'Hi' }, friends[0].id); process.exit(0) // Exit immediately after sending message. // Message never actually gets sent.
Expected behavior sendMessage() fully sends message before resolving.
Environment (please complete the following information):
I don't think you will know if the message sent...
Describe the bug I might be missing something/doing something dumb, but it seems like
sendMessage()
resolves its promise before actually sending the message.To Reproduce
Expected behavior
sendMessage()
fully sends message before resolving.Environment (please complete the following information):