Deprecated
Kind: global class
function
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
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. |
function
The 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)
Object
Returns the User object matching the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param | Type |
---|---|
userId | string |
Object
Returns the User object matching the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param | Type |
---|---|
name | string |
Object
Returns the User object matching the supplied email.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param | Type |
---|---|
string |
Object
Returns the User object matching the supplied bot ID.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param | Type |
---|---|
botId | string |
Object
Returns the Channel object matching the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param |
---|
channelId |
Object
Returns the Channel object matching the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param |
---|
name |
Object
Returns the Group object matching the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param |
---|
groupId |
Object
Returns the Group object matching the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param |
---|
name |
Object
Returns the DM object matching the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param |
---|
dmId |
Object
Returns the DM object between the registered user and the user with the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param |
---|
name |
Object
Returns the DM object between the registered user and the user with the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param |
---|
id |
Object
Returns the bot object matching the supplied id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param |
---|
botId |
Object
Returns the bot object matching the supplied name.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param | Type |
---|---|
name | string |
Object
Returns the bot object matching the supplied user ID.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param |
---|
userId |
Object
Returns 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 |
Object
Returns the channel, group or DM object matching the supplied Id.
Kind: instance method of [SlackDataStore](#SlackDataStore)
Param |
---|
objId |
Object
Returns 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 |