Options
All
  • Public
  • Public/Protected
  • All
Menu

The Document definition for a ChatMessage. Defines the DataSchema and common behaviors for a ChatMessage which are shared between both client and server.

mixes

ChatMessageData

memberof

documents

param data

Initial data from which to construct the ChatMessage

param context

Construction context options

Hierarchy

Index

Constructors

Properties

metadata: any = ...

Default metadata which applies to each instance of this Document type.

Methods

  • migrateData(data: any): any
  • inheritdoc

    Parameters

    • data: any

    Returns any

  • shimData(data: any, options: any): any
  • inheritdoc

    Parameters

    • data: any
    • options: any

    Returns any

  • #canCreate(user: any, doc: any): any
  • Is a user able to create a new chat message?

    Parameters

    • user: any
    • doc: any

    Returns any

  • #canUpdate(user: any, doc: any, data: any): boolean
  • Is a user able to update an existing chat message?

    Parameters

    • user: any
    • doc: any
    • data: any

    Returns boolean

  • #canDelete(user: any, doc: any): boolean
  • Is a user able to delete an existing chat message?

    Parameters

    • user: any
    • doc: any

    Returns boolean

  • #validateRoll(rollJSON: string): void
  • Validate that Rolls belonging to the ChatMessage document are valid

    Parameters

    • rollJSON: string

      The serialized Roll data

    Returns void