Class GlobalDocManager

A manager class for Docs

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

client: Client

Methods

  • Create a new Doc.

    Parameters

    • channelId: string

      The ID of the channel where the Doc should be created.

    • options: {}

      The options for the Doc to be created.

      Returns Promise<DocPayload>

      A Promise that resolves with the Doc payload of the newly created Doc.

    • Delete a Doc from a channel.

      Parameters

      • channelId: string

        The ID of the channel where the Doc is located.

      • docId: number

        The ID of the Doc to delete.

      Returns Promise<void>

      A Promise that resolves with void when the Doc is successfully deleted.

    • Fetch a Doc from a channel.

      Parameters

      • channelId: string

        The ID of the channel where the Doc is located.

      • docId: number

        The ID of the Doc to fetch.

      Returns Promise<DocPayload>

      A Promise that resolves with the Doc payload of the fetched Doc.

    • Update a Doc.

      Parameters

      • channelId: string

        The ID of the channel where the Doc is located.

      • docId: number

        The ID of the Doc to update.

      • options: {}

        The options for the Doc update.

        Returns Promise<DocPayload>

        A Promise that resolves with the Doc payload of the updated Doc.

      Generated using TypeDoc