Slack v0.0.12 Slack.IM
Functions for direct messages
Summary
Functions
Close an IM channel
Get the history of an IM channel
List IM channels for the user
Move the read cursor in an IM channel
Open an IM channel with a user
Functions
Specs
close(Slack.Client.t, Keyword.t) :: Slack.response
Close an IM channel
https://api.slack.com/methods/im.close
Examples
Slack.client(token)
|> Slack.IM.close(channel: "D1234567890")
Specs
history(Slack.Client.t, Keyword.t) :: Slack.response
Get the history of an IM channel.
https://api.slack.com/methods/im.history
Examples
Slack.client(token)
|> Slack.IM.history(channel: "D1234567890")
Specs
list(Slack.Client.t, Keyword.t) :: Slack.response
List IM channels for the user.
https://api.slack.com/methods/im.list
Examples
Slack.client(token)
|> Slack.IM.list
Specs
mark(Slack.Client.t, Keyword.t) :: Slack.response
Move the read cursor in an IM channel.
https://api.slack.com/methods/im.mark
Examples
Slack.client(token)
|> Slack.IM.mark(channel: "D1234567890", ts: 1234567890.123456)
Specs
open(Slack.Client.t, Keyword.t) :: Slack.response
Open an IM channel with a user.
https://api.slack.com/methods/im.open
Examples
Slack.client(token)
|> Slack.IM.open(user: "U1234567890")