I've been working on a spellbook that operates as closely as possible with Mark's 5e shaped character sheet. As a result I've been sending some fairly gnarly roll templates with lots of embedded rolls through sendChat. One of these causes the API to blow up on me, and it looks like it's a bug because the same expression works fine in the chat window. I've simplified it down as far as I am able. If you sendChat the following: [[[[2]]dc]]
you get this from the api: undefined:197
throw e;
^
Could not determine result type of: [{"type":"M","expr":2},{"type":"C","text":"dc"}] The same expression gives a "2" in the chat window, with a hover text of "Rolling 2dc=2", which is what I would expect. Mark makes quite extensive use of these sort of "hidden" text labels for his inline rolls in the character sheet, but luckily I've only found one instance where the planets are misaligned enough to cause this particular issue. Obviously the real expression in his sheet was *much* more complicated and built up out of dozens of nested variables, but this is the simplest case I can find to reproduce the problem. Cheers, Lucian