src/Channel.php
public function getMembers()
    {
        $memberPromises = [];
        foreach ($this->data['members'] as $memberId) {
            $memberPromises[] = $this->client->getUserById($memberId);
        }

        return Promise\all($memberPromises);
    }
public function getMembers()
    {
        $memberPromises = [];
        foreach ($this->data['members'] as $memberId) {
            $memberPromises[] = $this->client->getUserById($memberId);
        }

        return Promise\all($memberPromises);
    }
public function getMembers ( ) { $ memberPromises = [ ] ; foreach ( $ this -> data [ 'members' ] as $ memberId ) { $ memberPromises [ ] = $ this -> client -> getUserById ( $ memberId ) ; } return Promise \ all ( $ memberPromises ) ; }
Gets an iterator over all users in the channel.

@return \React\Promise\PromiseInterface A promise for an array of user
objects for each member in the channel.
Gets an iterator over all users in the channel .