lemmy-js-client
    Preparing search index...

    Type Alias CreatePost

    Create a post.

    type CreatePost = {
        alt_text?: string;
        body?: string;
        community_id: CommunityId;
        custom_thumbnail?: string;
        honeypot?: string;
        language_id?: LanguageId;
        name: string;
        nsfw?: boolean;
        scheduled_publish_time_at?: number;
        tags?: TagId[];
        url?: string;
    }
    Index

    Properties

    alt_text?: string

    An optional alt_text, usable for image posts.

    body?: string

    An optional body for the post in markdown.

    community_id: CommunityId
    custom_thumbnail?: string

    Instead of fetching a thumbnail, use a custom one.

    honeypot?: string

    A honeypot to catch bots. Should be None.

    language_id?: LanguageId
    name: string
    nsfw?: boolean
    scheduled_publish_time_at?: number

    Time when this post should be scheduled. Null means publish immediately.

    tags?: TagId[]
    url?: string