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

Commit

Permalink
Added API override to sanitize message
Browse files Browse the repository at this point in the history
  • Loading branch information
richardqhill committed Mar 14, 2019
1 parent c0219f3 commit b6186c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Slack_web_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,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 b6186c7

Please sign in to comment.