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

Search Results for

    Improve this Doc

    Method BanFromCommunity

    | Improve this Doc View Source

    BanFromCommunity(BanFromCommunityForm, CancellationToken)

    Bans a person from a community.

    Declaration
    public Task<BanFromCommunityResponse> BanFromCommunity(BanFromCommunityForm form, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    BanFromCommunityForm form

    The form to send for banning a person from a community.

    CancellationToken cancellationToken

    Optional cancellation token to pass through to HttpClient

    Returns
    Type Description
    Task<BanFromCommunityResponse>

    The task object representing the asynchronous operation. The task result contains the response after banning a person from a community.

    Implements
    ILemmyHttpClient.BanFromCommunity(BanFromCommunityForm, CancellationToken)
    © SlyCedix. All rights reserved.