Hierarchy

Properties

bonus?: string | number

An additional bonus to be added to the roll.

chatMessage?: boolean

Whether a chat message should be created.

Default Value

true

chatTemplateData?: object

Additional data passed to the chat message's content's renderTemplate.

compendium?: {
    entry: string;
    type: string;
}

Data used to create a link to a compendium entry in the chat message.

Type declaration

  • entry: string
  • type: string
dice?: string

The roll's d20 die (replacement), or the static result the d20 should have.

Default Value

"1d20"

flavor?: string

The flavor of the roll

noSound?: boolean

Whether no dice sound should be played when the chat message is created.

Default Value

false

parts?: string[]

An array of strings from which the roll's formula is created.

Default Value

[]

rollData?: object

Data object the roll is evaluated against.

Default Value

{}

rollMode?: string

The rollMode with which the chat message is created.

Default Value

game.settings.get("core", "rollMode")

skipDialog?: boolean

Whether a user facing dialog should be shown.

Default Value

true

speaker?: PropertiesToSource<ChatSpeakerDataProperties>

The speaker of the chat message.

staticRoll?: null | number

A number used as a static roll result of the d20. If null, the d20 is rolled normally and the result is used.

Default Value

null

subject?: object

Data stored in the chat message's flags to allow for easier identification of the message's subject.

Generated using TypeDoc