Slack EXT: Updatable Message
Create awesome interactions with by updating your slack messages.
Installation
Install it using NPM:
npm install --save slack-ext-updatable-message
Usage
Usage is really easy. You can send anything you can send with the Slack API, we'll do the administration:
const UpdatableMessage = ; // provide us a token or an instance of the Slack Api and the channelIdconst sender = "token" channelId; // send asynchronouslysender; // perform long operations a send feebackforvar i = 1; i < 10; i++ // long operation sender; await sender;
Notes
There are some choices we've made:
- Awaiting is optional, but if you want to make sure something really happed, await it.
- If multiple updates come in when sending (without
await
), the last available message will be send upon completion.