node-slack-sdk icon indicating copy to clipboard operation
node-slack-sdk copied to clipboard

Incoming Webhook client ignores `unfurl_links` and `unfurl_media` options

Open markcarey opened this issue 9 years ago • 1 comments

  • [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x] I've read and agree to the Code of Conduct.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Description

The Incoming Webhook client ignores unfurl_links and unfurl_media options.

Steps to reproduce:

  var url = subscription.url;
  var webhook = new slackWebhook(url);
  webhook.send({"text": msg, "unfurl_links": true, "unfurl_media": true}, function(err, res) {

Expected result:

values for unfurl_links and unfurl_media get passed on to slack api

Actual result:

only a predefined limited number of options are passed to slack api, the rest are ignored.

markcarey avatar Sep 25 '17 23:09 markcarey

@markcarey thanks for the issue report. you're totally right. i think a great solution would be to pass on all extra options to the API.

aoberoi avatar Oct 04 '17 00:10 aoberoi