• Apply the specified roll mode to chat message data.

    SoHL stores legacy roll-mode values (publicroll, gmroll, …); Foundry v14 renamed ChatMessage.applyRollModeChatMessage.applyMode and switched to message-mode keys (public, gm, …), so the value is translated at this boundary via toMessageMode.

    Parameters

    • data: object

      The chat message data to mutate in place.

    • mode: string

      The SoHL roll mode to apply.

    Returns void