Send a chat message
send-chat-messagePost a message to Foundry VTT chat as the Gamemaster or as a specific actor or token. Control visibility with whispers to selected users or Gamemasters, and format content with HTML.
Instructions
Post a message to the Foundry chat as the Gamemaster, or as an actor or token. Without whisperTo and whisperToGamemasters everyone sees it. Recipients are user ids or exact names; an unknown or ambiguous name sends nothing. Content is HTML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | Name shown as the speaker; defaults to the token or actor name | |
| style | No | In character, out of character, emote or other; default ic with a speaker, else ooc | |
| flavor | No | Optional small text above the message | |
| content | Yes | The message, HTML allowed | |
| sceneId | No | Scene id or exact name that holds speakerToken, when the id is on several scenes | |
| whisperTo | No | Only these users see it: ids or exact names | |
| speakerActor | No | Speak as this actor: its id or exact name | |
| speakerToken | No | Speak as this token: its uuid ("Scene.<id>.Token.<id>") or its id; never its name | |
| whisperToGamemasters | No | Every Gamemaster sees it too; alone, only Gamemasters see it |