src/Api/Community.php
public function members(int $limit = 100) : array
    {
        $returnMembers = [];

        $members = $this->get(sprintf(self::COMMUNITY_ENDPOINT . 'communities/%s/members', $this->id()), [
            'limit' => $limit
        ]);

        if ($members->size === 0) return $returnMembers;

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

        return $returnMembers;
    }
public function members(int $limit = 100) : array
    {
        $returnMembers = [];

        $members = $this->get(sprintf(self::COMMUNITY_ENDPOINT . 'communities/%s/members', $this->id()), [
            'limit' => $limit
        ]);

        if ($members->size === 0) return $returnMembers;

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

        return $returnMembers;
    }
public function members ( int $ limit = 100 ) : array { $ returnMembers = [ ] ; $ members = $ this -> get ( sprintf ( self :: COMMUNITY_ENDPOINT . 'communities/%s/members' , $ this -> id ( ) ) , [ 'limit' => $ limit ] ) ; if ( $ members -> size === 0 ) return $ returnMembers ; foreach ( $ members -> members as $ member ) { $ returnMembers [ ] = new User ( $ this -> client , $ member -> onlineId ) ; } return $ returnMembers ; }
Get the Users in the Community.

@param integer $limit Amount of Users to return.
@return array Array of Api\User.
Get the Users in the Community .