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

Search Results for

    Improve this Doc

    Method BanPerson

    | Improve this Doc View Source

    BanPerson(BanPersonForm, CancellationToken)

    Bans a person.

    Declaration
    public Task<BanPersonResponse> BanPerson(BanPersonForm form, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    BanPersonForm form

    The form to send for banning a person.

    CancellationToken cancellationToken

    Optional cancellation token to pass through to HttpClient

    Returns
    Type Description
    Task<BanPersonResponse>

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

    Implements
    ILemmyHttpClient.BanPerson(BanPersonForm, CancellationToken)
    © SlyCedix. All rights reserved.