Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Advertisement Create a free account

Direct whispers in chat

1457191615
Samuel Penn
KS Backer
When using sendChat() from an API script, is it possible to combine /direct with /w? I want to be able to send an HTML formatted message to myself (so that the players can't see the output).
1457191860
The Aaron
Forum Champion
API Scripter
You can just pass the html to the whisper and it works great. =D
1457191886
Samuel Penn
KS Backer
Actually, ignore that. Just discovered that you don't need /direct for HTML output, so I can simply use /w by itself. By interpretation of the API docs was that you needed /direct for HTML. I was wrong.
1457192009
Samuel Penn
KS Backer
That was an amazingly quick response Aaron, thank you. Quicker than me digging into the PowerCards code to see how it did it :-)
1457192405
The Aaron
Forum Champion
API Scripter
Hahaha. No worries.  /direct and /w used to have some differences in processing the HTML they are given, but I think those are pretty much gone now.  I had a suggestion about it, I should go back and review the things that it was doing and see if that's right...   =D