@slack/client
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -0,1 +1,9 @@ | ||
### v3.4.0 (2016-05-31) | ||
* Adds the [chat.meMessage](https://api.slack.com/methods/chat.meMessage) endpoint to the chat facet | ||
### v3.3.1 (2016-05-26) | ||
* Doesn't crash the RTM client if a message with a `reply_to` ID with no response handler is received | ||
### v3.3.0 (2016-05-24) | ||
@@ -2,0 +10,0 @@ |
@@ -766,2 +766,7 @@ /** | ||
if (!responseHandler) { | ||
this.logger('debug', 'no response handler for message ID: ' + msgId); | ||
return; | ||
} | ||
if (isFunction(responseHandler)) { | ||
@@ -768,0 +773,0 @@ responseHandler(err, res); |
@@ -6,2 +6,3 @@ /** | ||
* - delete: {@link https://api.slack.com/methods/chat.delete|chat.delete} | ||
* - meMessage: {@link https://api.slack.com/methods/chat.meMessage|chat.meMessage} | ||
* - postMessage: {@link https://api.slack.com/methods/chat.postMessage|chat.postMessage} | ||
@@ -41,2 +42,21 @@ * - update: {@link https://api.slack.com/methods/chat.update|chat.update} | ||
/** | ||
* Share a me message into a channel. | ||
* @see {@link https://api.slack.com/methods/chat.meMessage|chat.meMessage} | ||
* | ||
* @param {?} channel - Channel to send message to. Can be a public channel, private group or IM | ||
* channel. Can be an encoded ID, or a name. | ||
* @param {?} text - Text of the message to send. | ||
* @param {function=} optCb Optional callback, if not using promises. | ||
*/ | ||
ChatFacet.prototype.meMessage = function meMessage(channel, text, optCb) { | ||
var requiredArgs = { | ||
channel: channel, | ||
text: text | ||
}; | ||
return this.makeAPICall('chat.meMessage', requiredArgs, null, optCb); | ||
}; | ||
/** | ||
* Sends a message to a channel. | ||
@@ -43,0 +63,0 @@ * @see {@link https://api.slack.com/methods/chat.postMessage|chat.postMessage} |
{ | ||
"name": "@slack/client", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "A library for creating a Slack client", | ||
@@ -5,0 +5,0 @@ "main": "./index", |
256580
6582