Body, Mind & Soul — API Reference
    Preparing search index...

    Function gmWrite

    • Perform a write op on a document, delegating to the lead GM via socket when the current user doesn't own it (e.g. unlinked NPC ActorDelta). Return values are NOT relayed back across the socket — only use where the caller doesn't need the resulting document(s).

      Parameters

      • doc: Document
      • op:
            | "update"
            | "setFlag"
            | "unsetFlag"
            | "createEmbeddedDocuments"
            | "deleteEmbeddedDocuments"
            | "updateEmbeddedDocuments"
      • args: any[]

      Returns Promise<any>