Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit fa8c44b

Browse files
committed
Add views.publish API
1 parent 9de879b commit fa8c44b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/Slack_web_api.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ module.exports = function(bot, config) {
150150
'users.profile.set',
151151
'views.open',
152152
'views.update',
153-
'views.push'
153+
'views.push',
154+
'views.publish'
154155
];
155156

156157
/**
@@ -240,7 +241,12 @@ module.exports = function(bot, config) {
240241
slack_api.views.push = function(options, cb) {
241242
sanitizeOptions(options);
242243
slack_api.callAPI('views.push', options, cb);
243-
};
244+
};
245+
246+
slack_api.views.publish = function(options, cb) {
247+
sanitizeOptions(options);
248+
slack_api.callAPI('views.publish', options, cb);
249+
};
244250

245251
// specify that files get uploaded using multipart
246252
slack_api.files.upload = function(options, cb) {

0 commit comments

Comments
 (0)