@slack/client

Node Slack SDK

So you want to build a Slack app with Node.js? We've got you covered. This package is aimed at making building Slack
apps ridiculously easy. It helps you build on all aspects of the Slack platform, from dropping notifications in channels
to fully interactive bots.

Installation

Use npm to install the package and save it to your package.json:

$ npm install @slack/client

Features

The Slack platform offers several APIs to build apps. Each API delivers part of the capabilities from the platform, with
a range of complexity and functionality, so that you can pick the one that fits for your app.

Just starting out? The Getting Started guide will walk
you through building your first Slack app using Node.js.

Not sure about which APIs are right for your app? Read our helpful blog
post that explains and compares
the options. If you're still not sure, reach out for help and our community can guide you.

Examples

Posting a message with Web API

Your app will interact with the Web API through the WebClient object, which a top level export from this package. You
need to instantiate it with a token. The example below shows how to post a message into a channel, DM, MPDM, or group.
This will require either the bot, chat:user:write or chat:bot:write scopes.