Slack v0.2.1 Slack.Pin View Source
Functions for working with pinned items
Link to this section Summary
Link to this section Functions
Link to this function
add(client, body \\ [])
View Sourceadd(Slack.Client.t(), Keyword.t()) :: Slack.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")
Link to this function
list(client, query \\ [])
View Sourcelist(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
List pins in a channel.
https://api.slack.com/methods/pins.list
Examples
Slack.client(token)
|> Slack.Pin.list(channel: "C1234567890")
Link to this function
remove(client, body \\ [])
View Sourceremove(Slack.Client.t(), Keyword.t()) :: Slack.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")