Interface GalleryPostOptions

Options for submitting a gallery post.

interface GalleryPostOptions {
    gallery: {
        caption?: string;
        file: Blob | File;
        fileName: string;
        outboundUrl?: string;
    }[];
    options: LinkPostOptions;
    subreddit: string;
    title: string;
}

Properties

gallery: {
    caption?: string;
    file: Blob | File;
    fileName: string;
    outboundUrl?: string;
}[]

An array of media files to upload.

Type declaration

  • Optional caption?: string

    A caption for the embedded file to be used on gallery items.

  • file: Blob | File

    The media file to upload.

  • fileName: string

    File name.

  • Optional outboundUrl?: string

    An external URL to be used on gallery items.

Extra options for the gallery post.

subreddit: string

The title of the gallery post.

title: string

The title of the gallery post.

Generated using TypeDoc