Slack v0.0.12 Slack.Pin
Functions for working with pinned items
Summary
Functions
Specs
add(Slack.Client.t, Keyword.t) :: Slack.response
Pin an item to a channel.
https://api.slack.com/methods/pins.add
Examples
Slack.client(token)
|> Slack.Pin.add(channel "C1234567890", file: "F1234567890")
Specs
list(Slack.Client.t, Keyword.t) :: Slack.response
List pins in a channel.
https://api.slack.com/methods/pins.list
Examples
Slack.client(token)
|> Slack.Pin.list(channel "C1234567890")
Specs
remove(Slack.Client.t, Keyword.t) :: Slack.response
Un-pin an item from a channel.
https://api.slack.com/methods/pins.remove
Examples
Slack.client(token)
|> Slack.Pin.remove(channel "C1234567890", file: "F1234567890")