Overview
  • Namespace
  • Class

Namespaces

  • Slack
    • Message

Classes

  • ApiClient
  • Bot
  • Channel
  • ClientObject
  • DataObject
  • DirectMessageChannel
  • Group
  • Payload
  • RealTimeClient
  • Team
  • User

Interfaces

  • ChannelInterface
  • Exception

Exceptions

  • ApiException
  • ConnectionException
  • UserNotFoundException

Class User

Contains information about a team member.

Slack\DataObject implements JsonSerializable
Extended by Slack\ClientObject
Extended by Slack\User
Namespace: Slack
Located at User.php

Methods summary

public string
# getId( )

Gets the user's ID.

Gets the user's ID.

Returns

string
The user's ID.
public string
# getUsername( )

Gets the user's username.

Gets the user's username.

Does not include the @ symbol at the beginning.

Returns

string
The user's username.
public string
# getFirstName( )

Gets the user's first name if supplied.

Gets the user's first name if supplied.

Returns

string
The user's first name, or null if no name was given.
public string
# getLastName( )

Gets the user's last name if supplied.

Gets the user's last name if supplied.

Returns

string
The user's last name, or null if no name was given.
public string
# getRealName( )

Gets the user's real name if supplied.

Gets the user's real name if supplied.

Returns

string
The user's real name, or null if no name was given.
public string
# getEmail( )

Gets the user's email address if supplied.

Gets the user's email address if supplied.

Returns

string
The user's email address, or null if no email was given.
public string
# getPhone( )

Gets the user's phone number if supplied.

Gets the user's phone number if supplied.

Returns

string
The user's phone number, or null if no number was given.
public string
# getSkype( )

Gets the user's Skype name if supplied.

Gets the user's Skype name if supplied.

Returns

string
The user's Skype name, or null if no Skype name was given.
public boolean
# isAdmin( )

Checks if the user is a team administrator.

Checks if the user is a team administrator.

Returns

boolean
True if the user is a team administrator.
public boolean
# isOwner( )

Checks if the user is a team owner.

Checks if the user is a team owner.

Returns

boolean
True if the user is a team owner.
public boolean
# isPrimaryOwner( )

Checks if the user is the team's primary owner.

Checks if the user is the team's primary owner.

Returns

boolean
True if the user is the primary team owner.
public boolean
# isDeleted( )

Checks if the user has been deactivated.

Checks if the user has been deactivated.

Returns

boolean
True if the user is deactivated.
public React\Promise\PromiseInterface
# getPresence( )

Gets a user's presence.

Gets a user's presence.

Returns

React\Promise\PromiseInterface
The current user's presence, either "active" or "away".
public string
# getProfileImage24( )

User profile image URL 24x24px

User profile image URL 24x24px

Returns

string
URL of the 24x24px user profile image
public string
# getProfileImage32( )

User profile image URL 32x32px

User profile image URL 32x32px

Returns

string
URL of the 32x32px user profile image
public string
# getProfileImage48( )

User profile image URL 48x48px

User profile image URL 48x48px

Returns

string
URL of the 48x48px user profile image
public string
# getProfileImage72( )

User profile image URL 72x72px

User profile image URL 72x72px

Returns

string
URL of the 72x72px user profile image
public string
# getProfileImage192( )

User profile image URL 192x192px

User profile image URL 192x192px

Returns

string
URL of the 192x192px user profile image

Methods inherited from Slack\ClientObject

__construct(), getClient()

Methods inherited from Slack\DataObject

fromData(), jsonSerialize(), jsonUnserialize()

Properties summary

Properties inherited from Slack\ClientObject

$client

Properties inherited from Slack\DataObject

$data

API documentation generated by ApiGen