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

    Variable ChatMessageConst

    ChatMessage: {
        batchSize: number;
        collection: typeof ChatMessages;
        dataModels: Record<string, typeof TypeDataModel>;
        documentClass: typeof documents.ChatMessage;
        embedHandlers: DocumentEmbedHandler[];
        modes: Record<
            string,
            { handler: (data: ChatMessageData) => void; icon: string; label: string },
        >;
        popoutClass: typeof ChatPopout;
        sidebarIcon: string;
        template: string;
        typeHints: Record<string, string>;
        typeIcons: Record<string, string>;
        typeLabels: Record<string, string>;
    } = ...

    Configuration for the ChatMessage document

    Type Declaration

    • batchSize: number
    • collection: typeof ChatMessages
    • dataModels: Record<string, typeof TypeDataModel>
    • documentClass: typeof documents.ChatMessage
    • embedHandlers: DocumentEmbedHandler[]
    • modes: Record<
          string,
          { handler: (data: ChatMessageData) => void; icon: string; label: string },
      >

      Supported chat message visibility modes.

    • popoutClass: typeof ChatPopout
    • sidebarIcon: string
    • template: string
    • typeHints: Record<string, string>
    • typeIcons: Record<string, string>
    • typeLabels: Record<string, string>