
Hi all, I am wondering why I got the following error when using api sendChat with inline roll: TypeError: Object 4 has no method 'replace' at _substituteShortForms ( here is a code snippet: test = function(){ var val = "[[10 + @{Spy|npc_perception}]]"; sendChat('', val, function(ops){ log(ops); }) } If I write [[10 + @{Spy|npc_perception}]] directly in chat, it work....