We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44462b7 commit 0a66983Copy full SHA for 0a66983
lib/index.js
@@ -97,7 +97,7 @@ util.inherits(slackAPI, eventEmitter);
97
* @example reqAPI('rtm.start', {}, console.log)
98
*/
99
slackAPI.prototype.reqAPI = function (method, data, callback) {
100
- data.token = this.token;
+ if(typeof data.token === 'undefined') data.token = this.token;
101
102
if (typeof data.attachments !== 'undefined') {
103
data.attachments = JSON.stringify(data.attachments);
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "slackbotapi",
3
- "version": "1.3.8",
+ "version": "1.3.9",
4
"description": "a node.js API using Slack their RTM API",
5
"main": "lib/index.js",
6
"scripts": {
0 commit comments