Slack v0.2.1 Slack.Group View Source

Functions for working with private channels (groups)

Link to this section 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.

Link to this section Functions

Archive a private channel.

https://api.slack.com/methods/groups.archive

Examples

Slack.Group.archive(client, channel: "G1234567890")

Close a private channel.

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

Examples

Slack.Group.close(client, channel: "G1234567890")

Create a private channel.

https://api.slack.com/methods/groups.create

Examples

Slack.Group.create(client, name: "newchannel")
Link to this function

createChild(client, body \\ [])

View Source

Replace a private channel.

https://api.slack.com/methods/groups.createChild

Examples

Slack.Group.createChild(client, channel: "G1234567890")

Get the history of a private channel.

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

Examples

Slack.Group.history(client, channel: "G1234567890")

Get the info of a private channel.

https://api.slack.com/methods/groups.info

Examples

Slack.Group.info(client, channel: "G1234567890")

Invite a user to a private channel.

https://api.slack.com/methods/groups.invite

Examples

Slack.Group.invite(client, channel: "G1234567890", user: "U1234567890")

Kick a user from a private channel.

https://api.slack.com/methods/groups.kick

Examples

Slack.Group.kick(client, channel: "G1234567890", user: "U1234567890")

Leave a private channel.

https://api.slack.com/methods/groups.leave

Examples

Slack.Group.leave(client, channel: "G1234567890")

List private channels.

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

Examples

Slack.Group.list(client)

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)

Open a private channel.

https://api.slack.com/methods/groups.open

Examples

Slack.Group.open(client, channel: "G1234567890")

Rename a private channel.

https://api.slack.com/methods/groups.rename

Examples

Slack.Group.rename(client, channel: "G1234567890", name: "newname")
Link to this function

setPurpose(client, body \\ [])

View Source

Set the purpose of a private channel.

https://api.slack.com/methods/groups.setPurpose

Examples

Slack.Group.setPurpose(client, channel: "G1234567890", purpose: "purpose")

Set the topic of a private channel.

https://api.slack.com/methods/groups.setTopic

Examples

Slack.Group.setTopic(client, channel: "G1234567890", topic: "topic")
Link to this function

unarchive(client, body \\ [])

View Source

Unarchive a private channel.

https://api.slack.com/methods/groups.unarchive

Examples

Slack.Group.unarchive(client, channel: "G1234567890")