Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function updateDocument

    • A hook event that fires for every Document type after conclusion of an update workflow. Substitute the Document name in the hook event to target a specific Document type, for example "updateActor". This hook fires for all connected clients after the update has been processed.

      Parameters

      • document: Document<object, DocumentConstructionContext>

        The existing Document which was updated

      • changed: object

        Differential data that was used to update the document

      • options: Partial<DatabaseUpdateOperation>

        Additional options which modified the update request

      • userId: string

        The ID of the User who triggered the update workflow

      Returns void