Interface LinkPostOptions

Extra options for submitting a link post.

interface LinkPostOptions {
    captcha?: Captcha;
    flairId?: string;
    flairText?: string;
    nsfw?: boolean;
    sendReplies?: boolean;
    spoiler?: boolean;
    unique?: boolean;
}

Hierarchy (view full)

Properties

captcha?: Captcha

The captcha information. This is only necessary if the authenticated account requires a captcha to submit posts and comments.

flairId?: string

The flair ID to apply to the post.

flairText?: string

The flair text to apply to the post.

nsfw?: boolean

Whether or not this post is NSFW (defaults to false).

sendReplies?: boolean

Whether or not to send inbox replies for the new post (defaults to true).

If you want to change this later you can use Post.enableInboxReplies and Post.disableInboxReplies.

spoiler?: boolean

Whether or not this post is a spoiler (defaults to false).

unique?: boolean

Whether or not to error if this link has been submitted before (defaults to false).

Generated using TypeDoc