Slack v0.2.1 Slack.MPIM View Source
Functions for multiparty IMs
Link to this section Summary
Functions
Close a multiparty IM channel
Get the history of a multiparty IM channel.
List multiparty IM channels for the user.
Move the read cursor in a multiparty IM channel.
Open a multiparty IM channel with a user.
Link to this section Functions
Link to this function
close(client, body \\ [])
View Sourceclose(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Close a multiparty IM channel
https://api.slack.com/methods/im.close
Examples
Slack.client(token)
|> Slack.IM.close(channel: "G1234567890")
Link to this function
history(client, query \\ [])
View Sourcehistory(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Get the history of a multiparty IM channel.
https://api.slack.com/methods/im.history
Examples
Slack.client(token)
|> Slack.IM.history(channel: "G1234567890")
Link to this function
list(client, query \\ [])
View Sourcelist(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
List multiparty IM channels for the user.
https://api.slack.com/methods/im.list
Examples
Slack.client(token)
|> Slack.IM.list
Link to this function
mark(client, body \\ [])
View Sourcemark(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Move the read cursor in a multiparty IM channel.
https://api.slack.com/methods/im.mark
Examples
Slack.client(token)
|> Slack.IM.mark(channel: "G1234567890", ts: 1234567890.123456)
Link to this function
open(client, body \\ [])
View Sourceopen(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Open a multiparty IM channel with a user.
https://api.slack.com/methods/im.open
Examples
Slack.client(token)
|> Slack.IM.open(user: "U1234567890,U2345678901")