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

        if (!isset($this->session->members) || $this->session->memberCount <= 0) return $members;

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

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

        if (!isset($this->session->members) || $this->session->memberCount <= 0) return $members;

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

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

@return array|null Array of Api\User.
Get Users in the Session .