Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Variable USER_ROLE_NAMESConst

    USER_ROLE_NAMES: {
        "0": "NONE";
        "1": "PLAYER";
        "2": "TRUSTED";
        "3": "ASSISTANT";
        "4": "GAMEMASTER";
    } = ...

    Invert the User Role mapping to recover role names from a role integer

    Type Declaration

    • 0: "NONE"
    • 1: "PLAYER"
    • 2: "TRUSTED"
    • 3: "ASSISTANT"
    • 4: "GAMEMASTER"