Interface SubredditFlair

The type of subreddit flair.

interface SubredditFlair {
    allowableContent: string;
    backgroundColor: string;
    cssClass: string;
    id: string;
    modOnly: boolean;
    richtext?: {
        e: "text";
        t: string;
    }[];
    text: string;
    textColor: "dark" | "light";
    textEditable: boolean;
    type: "text" | "richtext";
}

Properties

allowableContent: string

Specifies allowed content for the flair.

backgroundColor: string

The flair background color.

cssClass: string

CSS class for the flair.

id: string

The flair ID.

modOnly: boolean

If the flair is mod only.

richtext?: {
    e: "text";
    t: string;
}[]

Richtext flair.

Type declaration

  • e: "text"

    The flair type.

  • t: string

    The flair text.

text: string

The flair text.

textColor: "dark" | "light"

The flair text color.

textEditable: boolean

If the flair is editable.

type: "text" | "richtext"

The flair type.