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

Commit 1623726

Browse files
authoredMar 14, 2019
Merge pull request #1606 from richardqhill/addScheduleMessage
Added Slack chat.scheduleMessage to web api
2 parents 59c42c9 + b6186c7 commit 1623726

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎lib/Slack_web_api.js

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ module.exports = function(bot, config) {
4343
'chat.getPermalink',
4444
'chat.postMessage',
4545
'chat.postEphemeral',
46+
'chat.scheduleMessage',
4647
'chat.update',
4748
'chat.unfurl',
4849
'conversations.archive',
@@ -213,6 +214,11 @@ module.exports = function(bot, config) {
213214
slack_api.callAPI('chat.postEphemeral', options, cb);
214215
};
215216

217+
slack_api.chat.scheduleMessage = function(options, cb) {
218+
sanitizeOptions(options);
219+
slack_api.callAPI('chat.scheduleMessage', options, cb);
220+
};
221+
216222
slack_api.chat.update = function(options, cb) {
217223
sanitizeOptions(options);
218224
slack_api.callAPI('chat.update', options, cb);

0 commit comments

Comments
 (0)
This repository has been archived.