Slack v0.0.12 Slack.Group
Functions for working with private channels (groups)
Summary
Functions
Archive a private channel
Close a private channel
Create a private channel
Replace a private channel
Get the history of a private channel
Get the info of a private channel
Invite a user to a private channel
Kick a user from a private channel
Leave a private channel
List private channels
Move the read cursor in a private channel
Open a private channel
Rename a private channel
Set the purpose of a private channel
Set the topic of a private channel
Unarchive a private channel
Functions
Specs
archive(Slack.Client.t, Keyword.t) :: Slack.response
Archive a private channel.
https://api.slack.com/methods/groups.archive
Examples
Slack.Group.archive(client, channel: "G1234567890")
Specs
close(Slack.Client.t, Keyword.t) :: Slack.response
Close a private channel.
https://api.slack.com/methods/groups.close
Examples
Slack.Group.close(client, channel: "G1234567890")
Specs
create(Slack.Client.t, Keyword.t) :: Slack.response
Create a private channel.
https://api.slack.com/methods/groups.create
Examples
Slack.Group.create(client, name: "newchannel")
Specs
createChild(Slack.Client.t, Keyword.t) :: Slack.response
Replace a private channel.
https://api.slack.com/methods/groups.createChild
Examples
Slack.Group.createChild(client, channel: "G1234567890")
Specs
history(Slack.Client.t, Keyword.t) :: Slack.response
Get the history of a private channel.
https://api.slack.com/methods/groups.history
Examples
Slack.Group.history(client, channel: "G1234567890")
Specs
info(Slack.Client.t, Keyword.t) :: Slack.response
Get the info of a private channel.
https://api.slack.com/methods/groups.info
Examples
Slack.Group.info(client, channel: "G1234567890")
Specs
invite(Slack.Client.t, Keyword.t) :: Slack.response
Invite a user to a private channel.
https://api.slack.com/methods/groups.invite
Examples
Slack.Group.invite(client, channel: "G1234567890", user: "U1234567890")
Specs
kick(Slack.Client.t, Keyword.t) :: Slack.response
Kick a user from a private channel.
https://api.slack.com/methods/groups.kick
Examples
Slack.Group.kick(client, channel: "G1234567890", user: "U1234567890")
Specs
leave(Slack.Client.t, Keyword.t) :: Slack.response
Leave a private channel.
https://api.slack.com/methods/groups.leave
Examples
Slack.Group.leave(client, channel: "G1234567890")
Specs
list(Slack.Client.t, Keyword.t) :: Slack.response
List private channels.
https://api.slack.com/methods/groups.list
Examples
Slack.Group.list(client)
Specs
mark(Slack.Client.t, Keyword.t) :: Slack.response
Move the read cursor in a private channel.
https://api.slack.com/methods/groups.mark
Examples
Slack.Group.mark(client, channel: "G1234567890", ts: 1234567890.123456)
Specs
open(Slack.Client.t, Keyword.t) :: Slack.response
Open a private channel.
https://api.slack.com/methods/groups.open
Examples
Slack.Group.open(client, channel: "G1234567890")
Specs
rename(Slack.Client.t, Keyword.t) :: Slack.response
Rename a private channel.
https://api.slack.com/methods/groups.rename
Examples
Slack.Group.rename(client, channel: "G1234567890", name: "newname")
Specs
setPurpose(Slack.Client.t, Keyword.t) :: Slack.response
Set the purpose of a private channel.
https://api.slack.com/methods/groups.setPurpose
Examples
Slack.Group.setPurpose(client, channel: "G1234567890", purpose: "purpose")
Specs
setTopic(Slack.Client.t, Keyword.t) :: Slack.response
Set the topic of a private channel.
https://api.slack.com/methods/groups.setTopic
Examples
Slack.Group.setTopic(client, channel: "G1234567890", topic: "topic")
Specs
unarchive(Slack.Client.t, Keyword.t) :: Slack.response
Unarchive a private channel.
https://api.slack.com/methods/groups.unarchive
Examples
Slack.Group.unarchive(client, channel: "G1234567890")