Options accepted by SohlSpeaker.toChat for a chat message.

interface ChatOptions {
    flavor: string;
    rollMode: string;
    rolls: sohl.entity.roll.SimpleRoll[];
    sound: string;
    style: SohlSpeakerStyle;
    user: string;
}

Properties

flavor: string

Message flavor text.

rollMode: string

Visibility mode for this message (Foundry roll mode, e.g. "gmroll" to whisper to GMs). Overrides the speaker's default when set.

Rolls to attach to the message.

sound: string

Sound to play when the message posts.

Chat-card style (whisper, roll, OOC, etc.).

user: string

Id of the user the message is posted as.