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

Added Slack chat.scheduleMessage to web api #1606

Merged
merged 2 commits into from
Mar 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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