Is this ChatMessage currently displayed in the sidebar ChatLog?
Is the display of dice rolls in this message collapsed (false) or expanded (true)
Return the recommended String alias for this message. The alias could be a Token name in the case of in-character messages or dice rolls. Alternatively it could be the name of a User in the case of OOC chat or whispers.
Is the current User the author of this message?
Return whether the content of the message is visible to the current user. For certain dice rolls, for example, the message itself may be visible while the content of that message is not.
Test whether the chat message contains a dice roll
Return whether the ChatMessage is visible to the current User. Messages may not be visible if they are private whispers.
Update the data of a ChatMessage instance to apply a requested rollMode
The rollMode preference to apply to this message data
Obtain a data object used to evaluate any dice rolls associated with this particular chat message
Render the HTML for the ChatMessage which should be added to the log
Export the content of the chat message into a standardized log format
Render the inner HTML content for ROLL type messages.
The chat message data used to render the message HTML
Transform a provided object of ChatMessage data by applying a certain rollMode to the data object.
The object of ChatMessage data prior to applying a rollMode preference
The rollMode preference to apply to this message data
The modified ChatMessage data with rollMode preferences applied
Attempt to determine who is the speaking character (and token) for a certain Chat Message First assume that the currently controlled Token is the speaker
Options which affect speaker identification
The identified speaker data
Obtain an Actor instance which represents the speaker of this message (if any)
The speaker data object
Given a string whisper target, return an Array of the user IDs which should be targeted for the whisper
The target name of the whisper target
An array of User instances
A helper to prepare the speaker object based on a target TokenDocument
Options which affect speaker identification
The identified speaker data
The client-side ChatMessage document which extends the common BaseChatMessage model.
ClientDocumentMixin
{@link documents.Messages} The world-level collection of ChatMessage documents