interface UserData {
    _id: string;
    name: string;
    password: string;
    passwordSalt: string;
    avatar: string;
    character: BaseActor;
    color: string;
    hotbar: object;
    permissions: object;
    role: number;
    flags: object;
    _stats: DocumentStats;
}

Properties

_id: string

The _id which uniquely identifies this User document.

name: string

The user's name.

password: string

The user's password. Available only on the Server side for security.

passwordSalt: string

The user's password salt. Available only on the Server side for security.

avatar: string

The user's avatar image.

character: BaseActor

A linked Actor document that is this user's impersonated character.

color: string

A color to represent this user.

hotbar: object

A mapping of hotbar slot number to Macro id for the user.

permissions: object

The user's individual permission configuration, see CONST.USER_PERMISSIONS.

role: number

The user's role, see CONST.USER_ROLES.

flags: object

An object of optional key/value flags

_stats: DocumentStats

An object of creation and access information