Lemmy .NET API Lemmy .NET API
Lemmy .NET API Lemmy .NET API

Search Results for

    Improve this Doc

    Method CreateCommunity

    | Improve this Doc View Source

    CreateCommunity(CreateCommunityForm, CancellationToken)

    Creates a new community.

    Declaration
    public Task<CommunityResponse> CreateCommunity(CreateCommunityForm form, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    CreateCommunityForm form

    The form to send for creating a community.

    CancellationToken cancellationToken

    Optional cancellation token to pass through to HttpClient

    Returns
    Type Description
    Task<CommunityResponse>

    The task object representing the asynchronous operation. The task result contains the response after creating a community.

    Implements
    ILemmyHttpClient.CreateCommunity(CreateCommunityForm, CancellationToken)
    © SlyCedix. All rights reserved.