Slack Developer Kit for Node.js
Deprecated
Kind: global class
functionObjectObjectObjectObjectObjectObjectObjectObjectObjectObjectObjectObjectObjectObjectObjectObjectObject| Param | Type | Description |
|---|---|---|
| opts | Object |
|
| [opts.logLevel] | string |
The log level for the logger. |
| [opts.logger] | function |
Function to use for log calls, takes (logLevel, logString) params. |
functionThe logger function attached to this client.
Kind: instance property of [SlackDataStore](#SlackDataStore)
Sets a handler to save RTM event data to the data-store.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| event | string |
| handler | function |
Clears the data store and re-sets it to the required starting state.
Kind: instance method of [SlackDataStore](#SlackDataStore)
ObjectReturns the User object matching the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| userId | string |
ObjectReturns the User object matching the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| name | string |
ObjectReturns the User object matching the supplied email.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
string |
ObjectReturns the User object matching the supplied bot ID.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| botId | string |
ObjectReturns the Channel object matching the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| channelId |
ObjectReturns the Channel object matching the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| name |
ObjectReturns the Group object matching the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| groupId |
ObjectReturns the Group object matching the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| name |
ObjectReturns the DM object matching the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| dmId |
ObjectReturns the DM object between the registered user and the user with the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| name |
ObjectReturns the DM object between the registered user and the user with the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| id |
ObjectReturns the bot object matching the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| botId |
ObjectReturns the bot object matching the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| name | string |
ObjectReturns the bot object matching the supplied user ID.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| userId |
ObjectReturns the bot object matching the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| name | string |
Returns the unread count for all objects: channels, groups etc.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Stores a channel object in the data store.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| channel | Object |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| group | Object |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| dm | Object |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| user | Object |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| bot | Object |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| team | Object |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| channel |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| group |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| dm |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| user |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| bot |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| team |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| id |
| obj |
ObjectReturns the channel, group or DM object matching the supplied Id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| objId |
ObjectReturns the channel or group object matching name, finding by channel, then group then DM.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param |
|---|
| objId |
Caches an rtm.start response to the datastore.
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| data | Object |
Kind: instance method of [SlackDataStore](#SlackDataStore)
| Param | Type |
|---|---|
| activeUserId | string |
| activeTeamId | string |
| messageType | string |
| message | Object |