node-slack-sdk
node-slack-sdk copied to clipboard
Incoming Webhook client ignores `unfurl_links` and `unfurl_media` options
- [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 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.