Slack

Holds the authorization token and the current channel for further REST API calls.

Constructors

this
this(string token, string channel)

Constructs a new Slack object and stores the token and channel for later use.

Members

Functions

conversationsHistory
Response conversationsHistory(string channelId, SysTime oldest, SysTime latest)

Fetches a conversation's history of messages and events.

conversationsList
Response conversationsList()

Lists all channels in a Slack team.

postMessage
Response postMessage(string msgString)

Sends a message to a channel.

postMessage
Response postMessage(JSONValue jsonMsg)

Sends a message to a channel.

Properties

channel
string channel [@property setter]

Sets the current channel.

channel
string channel [@property getter]

Returns the current channel.

Meta