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

    Class ChatMessagePF

    Chat Message document extension

    Hierarchy

    • ChatMessage
      • ChatMessagePF
    Index

    Constructors

    • Parameters

      • Optionaldata: CreateData

        Initial data from which to construct the ChatMessage

      • Optionalcontext: ConstructionContext

        Construction context options

      Returns ChatMessagePF

    Properties

    systemRolls: undefined | object

    An object containing Pathfinder specific rolls for this chat message, with a structure grouping them by their purpose.

    title: undefined | string

    Accessors

    • get actionSource(): undefined | null | ItemAction

      Linked action.

      Returns undefined | null | ItemAction

      • Null is returned if no action is linked.
      • Undefined is returned if the linked action is not found.
    • get itemSource(): undefined | null | ItemPF

      Linked item.

      Returns undefined | null | ItemPF

      • Null is returned if no item is linked
      • Undefined if item is not found
    • get targets(): TokenPF[]

      Targeted tokens.

      Returns TokenPF[]

    Methods

    • Parameters

      • data: any
      • options: any
      • userId: any

      Returns void

    • Protected

      On Check Message creation

      Parameters

      • user: User

        User who created the message

      Returns void

    • Internal

      Soft assign chat card title if not present

      Returns void

    • Returns void

    • Returns void

    • Render card content

      Parameters

      • options: object

        Render options

      Returns HTMLElement

      Synced with v13.339

      Happens too late for hooks

    • Parameters

      • source: boolean = true

        Return source data

      • clean: boolean = true

        Clean the source data of excess data

      Returns object

      • Raw data