src/Api/MessageThread.php
public function members() : array
    {
        $members = [];

        if (!isset($this->info()->threadMembers) || $this->info()->threadMembers <= 0) return null;

        foreach ($this->info()->threadMembers as $member) {
            $members[] = new User($this->client, $member->onlineId);
        }

        return $members;
    }
public function members() : array
    {
        $members = [];

        if (!isset($this->info()->threadMembers) || $this->info()->threadMembers <= 0) return null;

        foreach ($this->info()->threadMembers as $member) {
            $members[] = new User($this->client, $member->onlineId);
        }

        return $members;
    }
public function members ( ) : array { $ members = [ ] ; if ( ! isset ( $ this -> info ( ) -> threadMembers ) || $ this -> info ( ) -> threadMembers <= 0 ) return null ; foreach ( $ this -> info ( ) -> threadMembers as $ member ) { $ members [ ] = new User ( $ this -> client , $ member -> onlineId ) ; } return $ members ; }
Get members in the MessageThread.

@return array Array of Api\User.
Get members in the MessageThread .