createSlackClient
createSlackClient(
opts):object
Defined in: index.ts:9
Creates a Slack API client with auth and chat groups, both sharing one REST client.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”object
auth:
object
auth.test
Section titled “auth.test”test: () =>
Promise<SlackAuthTest>
Verify the token’s identity (POST auth.test).
Returns
Section titled “Returns”Promise<SlackAuthTest>
chat:
object
chat.postMessage
Section titled “chat.postMessage”postMessage: (
channel,text) =>Promise<void>
Send a message to a channel (POST chat.postMessage).
Parameters
Section titled “Parameters”channel
Section titled “channel”string
string
Returns
Section titled “Returns”Promise<void>