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

    Function updateCompendium

    • A hook event that fires whenever the contents of a Compendium pack were modified. This hook fires for all connected clients after the update has been processed.

      Parameters

      • pack: CompendiumCollection<any>

        The Compendium pack being modified

      • documents: Document<object, DocumentConstructionContext>[]

        The locally-cached Documents which were modified in the operation

      • options: object

        Additional options which modified the modification request

      • userId: string

        The ID of the User who triggered the modification workflow

      Returns void