public function fetchGroups() {
        $params = ['steamid' => $this->getSteamId64()];
        $result = WebApi::getJSONObject('ISteamUser', 'GetUserGroupList', 1, $params);

        $this->groups = [];
        foreach ($result->response->groups as $groupData) {
            $this->groups[] = SteamGroup::create($groupData->gid, false);
        }

        return $this->groups;
    }