public
string
|
#
getId( )
Gets the room ID.
Returns
string The room ID.
Implementation of
|
public
string
|
#
getName( )
Gets the channel name.
Returns
string The name of the channel.
|
public
string
|
#
getPurpose( )
Gets the channel's purpose text.
Gets the channel's purpose text.
Returns
string The channel's purpose text.
|
public
string
|
#
getTopic( )
Gets the channel topic text.
Gets the channel topic text.
Returns
string The channel's topic text.
|
public
React\Promise\PromiseInterface
|
#
getMembers( )
Gets an iterator over all users in the channel.
Gets an iterator over all users in the channel.
Returns
React\Promise\PromiseInterface A promise for an array of user
objects for each member in the channel.
|
public
DateTime
|
#
getTimeCreated( )
Gets the time the channel was created.
Gets the time the channel was created.
Returns
DateTime The time the channel was created.
|
public
React\Promise\PromiseInterface
|
#
getCreator( )
Gets the creator of the channel.
Gets the creator of the channel.
Returns
React\Promise\PromiseInterface The user who created the channel.
|
public
integer
|
#
getUnreadCount( )
Gets the number of message unread by the authenticated user.
Gets the number of message unread by the authenticated user.
Returns
integer The number of unread messages.
|
public
boolean
|
#
isArchived( )
Checks if the channel has been archived.
Checks if the channel has been archived.
Returns
boolean True if the channel has been archived, otherwise false.
|
public
React\Promise\PromiseInterface
|
#
rename( string $name )
Renames the channel.
Parameters
- $name
- The name to set to.
Returns
React\Promise\PromiseInterface
|
public
React\Promise\PromiseInterface
|
#
setPurpose( string $text )
Sets the channel's purpose text.
Sets the channel's purpose text.
Parameters
- $text
- The new purpose text to set to.
Returns
React\Promise\PromiseInterface
|
public
React\Promise\PromiseInterface
|
#
setTopic( string $text )
Sets the channel topic text.
Sets the channel topic text.
Parameters
- $text
- The new topic text to set to.
Returns
React\Promise\PromiseInterface
|
public
React\Promise\PromiseInterface
|
#
archive( )
Archives the channel.
Returns
React\Promise\PromiseInterface
|
public
React\Promise\PromiseInterface
|
#
unarchive( )
Un-archives the channel.
Returns
React\Promise\PromiseInterface
|
public
React\Promise\PromiseInterface
|
#
inviteUser( Slack\User $user )
Invites a user to the channel.
Invites a user to the channel.
Parameters
Returns
React\Promise\PromiseInterface
|
public
React\Promise\PromiseInterface
|
#
kickUser( Slack\User $user )
Kicks a user from the channel.
Kicks a user from the channel.
Parameters
Returns
React\Promise\PromiseInterface
|
public
|
|