Hierarchy

  • ThreadManager

Constructors

Methods

Constructors

Properties

db: D1Database

Methods

  • Creates a new thread.

    Parameters

    • subject: string

      Subject of the thread.

    • Optional thid: string

      Optional thread ID. If not provided, a random ID will be generated.

    Returns Promise<Thread>

    A promise that resolves to the newly created Thread object.

  • Retrieves a Thread object based on the provided thread ID.

    Parameters

    • thid: string

      The ID of the thread to retrieve.

    Returns Thread

    The Thread object.

Generated using TypeDoc