Pathfinder 1e for Foundry VTT
    Preparing search index...

    Function migrateMessage

    • Parameters

      • cm: ChatMessage<"base" | ModuleSubType>

        Chat Message document

      • Optionaloptions: { commit?: boolean; state?: MigrationState } = {}

        Additional options

        • Optionalcommit?: boolean

          If false, no update is performed. Returns update data instead.

        • Optionalstate?: MigrationState

          State tragger. Internal use only.

      Returns Promise<null | object | ChatMessage<"base" | ModuleSubType>>

      • Returns null if no update is needed, promise if commit is true, object otherwise.