Skip to content

Latest commit

 

History

History
75 lines (47 loc) · 1.18 KB

Channel.md

File metadata and controls

75 lines (47 loc) · 1.18 KB

Slack Channel API Methods (Go Back)

This PHP class provides methods to interact with the Slack Channel API. Below are instructions on how to use each method.

Method: list

list(array $channels = ['public_channel', 'private_channel'])

List channels based on the provided channel types.

Method: archive

archive(string $channelId)

Archive a channel.

Method: create

create(string $name, ?bool $isPrivate = null, ?string $teamId = null)

Create a new channel.

Method: info

info(string $channelId, ?bool $includeLocale = null, ?bool $includeNumMembers = null)

Retrieve information about a channel.

Method: members

members(string $channelId, ?string $cursor = null, ?int $limit = null)

List members of a channel.

Method: invite

invite(string $channelId, array $users)

Invite users to a channel.

Method: rename

rename(string $channelId, string $name)

Rename a channel.

Method: setPurpose

setPurpose(string $channelId, string $purpose)

Set the purpose for a channel.

Method: kick

kick(string $channelId, string $userId)

Remove a user from a channel.