unread-slack-message
v0.0.4
Published
get all unread slack messages for a given auth token
Downloads
3
Readme
Unread Slack Messages
Install
npm install unread-slack-message
yarn add unread-slack-message
Usage
const unreadSlackMessage = require('unreadSlackMessage');
unreadSlackMessage({authToken: process.env.AUTH_TOKEN})
.then(({mpims, ims, private, public}) => {
/** mpims | ims | private | public = {
* name;
* messages: Array<{
* user,
* type,
* subtype,
* ts,
* text
* }>
* }
*/
})
Tech stack
node v > 8.x.x
yarn v1.12.3