interface TokenData {
    _id: null | string;
    _movementHistory: object[];
    _regions: string[];
    actorId: null | string;
    actorLink?: boolean;
    alpha?: number;
    bar1?: TokenBarData;
    bar2?: TokenBarData;
    delta?: ActorDeltaData;
    detectionModes: TokenDetectionMode<true>[];
    displayBars?: number;
    displayName?: number;
    disposition?: number;
    elevation?: number;
    flags: DocumentFlags;
    height?: number;
    hidden?: boolean;
    light?: LightData;
    locked?: boolean;
    lockRotation?: boolean;
    name: string;
    occludable: TokenOcclusionData;
    ring: TokenRingData;
    rotation?: number;
    shape?: TokenShapeType;
    sight: TokenSightData;
    sort?: number;
    texture: TextureData;
    width?: number;
    x?: number;
    y?: number;
}

Properties

_id: null | string

The Token _id which uniquely identifies it within its parent Scene

_movementHistory: object[]
_regions: string[]
actorId: null | string

The _id of an Actor document which this Token represents

actorLink?: boolean

Does this Token uniquely represent a singular Actor, or is it one of many?

alpha?: number

The opacity of the token image

The configuration of the Token's primary resource bar

The configuration of the Token's secondary resource bar

The ActorDelta embedded document which stores the differences between this token and the base actor it represents.

detectionModes: TokenDetectionMode<true>[]

An array of detection modes which are available to this Token

displayBars?: number

The display mode of Token resource bars, from CONST.TOKEN_DISPLAY_MODES

displayName?: number

The display mode of the Token nameplate, from CONST.TOKEN_DISPLAY_MODES

disposition?: number

A displayed Token disposition from CONST.TOKEN_DISPOSITIONS

elevation?: number

The vertical elevation of the Token, in distance units

An object of optional key/value flags

height?: number

The height of the Token in grid units

hidden?: boolean

Is the Token currently hidden from player view?

light?: LightData

Configuration of the light source that this Token emits

locked?: boolean

Is the Token currently locked? A locked token cannot be moved or rotated via standard keyboard or mouse interaction.

lockRotation?: boolean

Prevent the Token image from visually rotating?

name: string

The name used to describe the Token

occludable: TokenOcclusionData

Configuration of occlusion options

Configuration of the Dynamic Token Ring

rotation?: number

The rotation of the Token in degrees, from 0 to 360. A value of 0 represents a southward-facing Token.

The shape of the Token

Configuration of sight and vision properties for the Token

sort?: number

The sort order

texture: TextureData

The token's texture on the canvas.

width?: number

The width of the Token in grid units

x?: number

The x-coordinate of the top-left corner of the Token

y?: number

The y-coordinate of the top-left corner of the Token