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

Commit

Permalink
Merge pull request #1606 from richardqhill/addScheduleMessage
Browse files Browse the repository at this point in the history
Added Slack chat.scheduleMessage to web api
  • Loading branch information
benbrown authored Mar 14, 2019
2 parents 59c42c9 + b6186c7 commit 1623726
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Slack_web_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ module.exports = function(bot, config) {
'chat.getPermalink',
'chat.postMessage',
'chat.postEphemeral',
'chat.scheduleMessage',
'chat.update',
'chat.unfurl',
'conversations.archive',
Expand Down Expand Up @@ -213,6 +214,11 @@ module.exports = function(bot, config) {
slack_api.callAPI('chat.postEphemeral', options, cb);
};

slack_api.chat.scheduleMessage = function(options, cb) {
sanitizeOptions(options);
slack_api.callAPI('chat.scheduleMessage', options, cb);
};

slack_api.chat.update = function(options, cb) {
sanitizeOptions(options);
slack_api.callAPI('chat.update', options, cb);
Expand Down

0 comments on commit 1623726

Please sign in to comment.