lemmy-js-client
    Preparing search index...

    Type Alias BanPerson

    Ban a person from the site.

    type BanPerson = {
        ban: boolean;
        expires_at?: number;
        person_id: PersonId;
        reason?: string;
        remove_or_restore_data?: boolean;
    }
    Index

    Properties

    ban: boolean
    expires_at?: number

    A time that the ban will expire, in unix epoch seconds.

    An i64 unix timestamp is used for a simpler API client implementation.

    person_id: PersonId
    reason?: string
    remove_or_restore_data?: boolean

    Optionally remove or restore all their data. Useful for new troll accounts. If ban is true, then this means remove. If ban is false, it means restore.