question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should allow to send message without payload.text

See original GitHub issue

This is a valid usage to send with only attachments and no text.

Line 13 of slack.js should be

if (!message.text && !Array.isArray(message.attachments)) {

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

3reactions
shamasiscommented, Sep 1, 2015

Currently you can bypass that check by providing text as

{
      toString: function () { return '' }
}
0reactions
shamasiscommented, Oct 8, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

mqtt: Sending messages without payload should trigger error
According to my testing messages without payload are not received by the broker (or not forwarded) and should therefore not be allowed?
Read more >
Sending messages using Incoming Webhooks - Slack API
Incoming Webhooks are a simple way to post messages from apps into Slack. Creating an Incoming Webhook gives you a unique URL to...
Read more >
SendMessage - Amazon Simple Queue Service
Delivers a message to the specified queue. Important. A message can include only XML, JSON, and unformatted text ...
Read more >
HTTP Messages - MDN Web Docs - Mozilla
The start-line and HTTP headers of the HTTP message are collectively known as the head of the requests, whereas its payload is known...
Read more >
Messaging - Messenger Platform - Meta for Developers
Your app can send unstructured or structured messages. An unstructured message can include text, audio, images, video, and files. A structure message will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found