From 687a6103bb3c0a3824521883872df001092a3802 Mon Sep 17 00:00:00 2001 From: Florian Meskens Date: Thu, 4 Jan 2018 11:16:39 +0100 Subject: [PATCH 1/2] Add some Slack API methods From https://api.slack.com/bot-users --- lib/Slack_web_api.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Slack_web_api.js b/lib/Slack_web_api.js index 5ed9dcff6..49211093f 100755 --- a/lib/Slack_web_api.js +++ b/lib/Slack_web_api.js @@ -22,8 +22,10 @@ module.exports = function(bot, config) { // Slack API methods: https://api.slack.com/methods var slackApiMethods = [ + 'api.test', 'auth.test', 'oauth.access', + 'bots.info', 'channels.archive', 'channels.create', 'channels.history', @@ -138,6 +140,7 @@ module.exports = function(bot, config) { 'users.info', 'users.identity', 'users.list', + 'users.lookupByEmail', 'users.setActive', 'users.setPresence', 'users.deletePhoto', From 9b6e1ee44bd0722e1eec3ccd0a9551139638b34b Mon Sep 17 00:00:00 2001 From: Florian Meskens Date: Thu, 4 Jan 2018 12:29:55 +0100 Subject: [PATCH 2/2] Add corresponding types --- lib/Botkit.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Botkit.d.ts b/lib/Botkit.d.ts index 09da1dab5..1bb2cdd23 100644 --- a/lib/Botkit.d.ts +++ b/lib/Botkit.d.ts @@ -302,12 +302,18 @@ declare namespace botkit { token: string; } interface SlackWebAPI { + api: { + test: SlackWebAPIMethod; + } auth: { test: SlackWebAPIMethod; }, oauth: { access: SlackWebAPIMethod; } + bots: { + info: SlackWebAPIMethod; + } channels: { archive: SlackWebAPIMethod; create: SlackWebAPIMethod; @@ -427,6 +433,7 @@ declare namespace botkit { getPresence: SlackWebAPIMethod; info: SlackWebAPIMethod; list: SlackWebAPIMethod; + lookupByEmail: SlackWebAPIMethod; setActive: SlackWebAPIMethod; setPresence: SlackWebAPIMethod; deletePhoto: SlackWebAPIMethod;