Slack Developer Kit for Node.js
Kind: global class
Archives a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.archive
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to archive |
| [optCb] | function |
Optional callback, if not using promises. |
Closes a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.close
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to close. |
| [optCb] | function |
Optional callback, if not using promises. |
Creates a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.create
| Param | Type | Description |
|---|---|---|
| name | ? |
Name of private channel to create |
| [optCb] | function |
Optional callback, if not using promises. |
Clones and archives a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.createChild
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to clone and archive. |
| [optCb] | function |
Optional callback, if not using promises. |
Fetches history of messages and events from a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.history
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to fetch history for. |
| [opts] | Object |
|
| opts.latest | ? |
End of time range of messages to include in results. |
| opts.oldest | ? |
Start of time range of messages to include in results. |
| opts.inclusive | ? |
Include messages with latest or oldest timestamp in results. |
| opts.count | ? |
Number of messages to return, between 1 and 1000. |
| opts.unreads | ? |
Include unread_count_display in the output? |
| [optCb] | function |
Optional callback, if not using promises. |
Gets information about a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.info
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to get info on |
| [optCb] | function |
Optional callback, if not using promises. |
Invites a user to a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.invite
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to invite user to. |
| user | ? |
User to invite. |
| [optCb] | function |
Optional callback, if not using promises. |
Removes a user from a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.kick
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to remove user from. |
| user | ? |
User to remove from private channel. |
| [optCb] | function |
Optional callback, if not using promises. |
Leaves a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.leave
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to leave |
| [optCb] | function |
Optional callback, if not using promises. |
Lists private channels that the calling user has access to.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.list
| Param | Type | Description |
|---|---|---|
| [opts] | Object |
|
| opts.exclude_archived | ? |
Don’t return archived private channels. |
| [optCb] | function |
Optional callback, if not using promises. |
Sets the read cursor in a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.mark
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to set reading cursor in. |
| ts | ? |
Timestamp of the most recently seen message. |
| [optCb] | function |
Optional callback, if not using promises. |
Opens a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.open
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to open. |
| [optCb] | function |
Optional callback, if not using promises. |
Renames a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.rename
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to rename |
| name | ? |
New name for private channel. |
| [optCb] | function |
Optional callback, if not using promises. |
Retrieve a thread of messages posted to a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.replies
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to fetch thread from |
| thread_ts | ? |
Unique identifier of a thread’s parent message |
| [optCb] | function |
Optional callback, if not using promises. |
Sets the purpose for a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.setPurpose
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to set the purpose of |
| purpose | ? |
The new purpose |
| [optCb] | function |
Optional callback, if not using promises. |
Sets the topic for a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.setTopic
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to set the topic of |
| topic | ? |
The new topic |
| [optCb] | function |
Optional callback, if not using promises. |
Unarchives a private channel.
Kind: instance method of [GroupsFacet](#GroupsFacet)
See: groups.unarchive
| Param | Type | Description |
|---|---|---|
| channel | ? |
Private channel to unarchive |
| [optCb] | function |
Optional callback, if not using promises. |