Class ContentManager

Manages content for the Client

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

#cache: Cache<typeof Content>

The cache of items for this manager

#holds: typeof Content

The data structure belonging to this manager

client: Client<boolean>

The client this manager is attached to

Accessors

Methods

  • Fetches Content by its Id

    Returns

    Content

    Parameters

    • contentOrId: string | Content
    • cached: boolean = true

      Should we return the Cached item? (Default: true)

    Returns Promise<null | Content>

  • Mark content as read.

    Parameters

    • content: string | Content | (string | Content)[]

      Content to mark as read

    • Optional from: "attach" | "channel" | "coll" | "feat" | "monofeed" | "mySmiles" | "my-smiles" | "mycomms" | "prof" | "rec" | "sear" | "subs" | "userfeat" | "reads" | "tag"

      Where the content was marked as read.

    Returns Promise<boolean>

Generated using TypeDoc