Skip to content

createSlackClient

createSlackClient(opts): object

Defined in: index.ts:9

Creates a Slack API client with auth and chat groups, both sharing one REST client.

SlackClientOptions

object

auth: object

test: () => Promise<SlackAuthTest>

Verify the token’s identity (POST auth.test).

Promise<SlackAuthTest>

chat: object

postMessage: (channel, text) => Promise<void>

Send a message to a channel (POST chat.postMessage).

string

string

Promise<void>