src/ApiClient.php
public function getUsers()
    {
        // get the user list
        return $this->apiCall('users.list')->then(function (Payload $response) {
            $users = [];
            foreach ($response['members'] as $member) {
                $users[] = new User($this, $member);
            }
            return $users;
        });
    }
public function getUsers()
    {
        // get the user list
        return $this->apiCall('users.list')->then(function (Payload $response) {
            $users = [];
            foreach ($response['members'] as $member) {
                $users[] = new User($this, $member);
            }
            return $users;
        });
    }
public function getUsers ( ) { // get the user list return $ this -> apiCall ( 'users.list' ) -> then ( function ( Payload $ response ) { $ users = [ ] ; foreach ( $ response [ 'members' ] as $ member ) { $ users [ ] = new User ( $ this , $ member ) ; } return $ users ; } ) ; }
Gets all users in the Slack team.

@return \React\Promise\PromiseInterface A promise for an array of users.
Gets all users in the Slack team .