public function community(string $communityIdOrName, string $type = '', string $titleId = '') : Community
    {
        if (!empty($type) && !empty($titleId)) {
            // Create the Community.
            $response = $this->httpClient()->post(Community::COMMUNITY_ENDPOINT . 'communities?action=create', [
                'name' => $communityIdOrName,
                'type' => $type,
                'titleId' => $titleId
            ], HttpClient::JSON);

            $communityIdOrName = $response->id;
        }

        return new Community($this, $communityIdOrName);
    }