• Translates a SoHL speaker roll-mode value into the Foundry v14 message-mode key for ChatMessage.applyMode (see MESSAGE_MODE_BY_ROLL_MODE). A value that is not a known SoHL roll mode — an already-translated message-mode key or a custom mode — is returned unchanged.

    Parameters

    • rollMode: string

      A SoHL speaker roll-mode value (e.g. "publicroll").

    Returns string | undefined

    The equivalent v14 message-mode key, undefined for the default (system) mode, or the input unchanged if it is not a known roll mode.