Not sure how to properly describe this, but I'm trying to write up a script that uses the the api chat feature and takes in a macro/attribute/inline roll as an argument. I intend to use it such that the api will take what I input and create an Ability object out of it to put into the character tokens I've selected. Example: !test @{selected|character_name} The issue, however, is that I don't know how (if it's possible) to have the text input into the API as is, because as it currently goes, it parses the string before it sends it off into the chat. So if given this code: on("ready", function() {
on("chat:message", function(msg) {
log(msg.content);
});
}); The log shows this: "!test Some guy" Rather than what I want it to show, which is this: !test @{selected|character_name} Is there some kind of escape character I can put in or something?