Slack v0.0.12 Slack.MPIM

Functions for multiparty IMs

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

Functions

close(client, body \\ [])

Close a multiparty IM channel

https://api.slack.com/methods/im.close

Examples

Slack.client(token)
|> Slack.IM.close(channel: "G1234567890")
history(client, query \\ [])

Get the history of a multiparty IM channel.

https://api.slack.com/methods/im.history

Examples

Slack.client(token)
|> Slack.IM.history(channel: "G1234567890")
list(client, query \\ [])

List multiparty IM channels for the user.

https://api.slack.com/methods/im.list

Examples

Slack.client(token)
|> Slack.IM.list
mark(client, body \\ [])

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)
open(client, body \\ [])

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")